NodeJS Server Input to get files and values in one request

I want to get files and values in one request.
I can get all the value in API, but files can not.

I use PostMan to call API.

This is my process.

I use XML Splitter to split “request/files/file”

and use Plugin “load External File” to load “C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\nodeJS\api\42d39f47-5181-4483-8998-a9d87d4f86c1\file1.txt”

but it can’t work that

10:55:12.945 [0009] W3830: The specified file : C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\nodeJS\api\42d39f47-5181-4483-8998-a9d87d4f86c1\file1.txt

I know the NodeJS Server Input have “Loop through each attachment as a data file”.But I use it, it can’t read all the value in API.

How can I get files and value in one request?

That’s an issue we fixed in OL Connect 2019.1. Can you confirm that your version is older than that?

The problem is that the file names in the XML file used to contain extra white space at the end.

You can work around the issue easily: in the data selection of your Set Job Infos and Variables task, make sure to tick the Trim selection option:

image

Hi @Phil,

My PReS Wowkflow version is 2022.1.
1665020155656

The issue contain extra white space at the end in version 2022.1.

I tick the Trim selection option, then can work load External File.