Page 1 of 1

Download all files with certain pattern

Posted: Wed Jul 08, 2015 3:10 pm
by Indy2
We receive XML's from one of our customers that contain an ID for the order which is present in all files associated with it.
The goal is to download all the files associated with the order from an FTP server and put them in a unique folder (ID number).

For ex. the ID is 123456, the following files associated with the order:
123456_body.pdf
123456_cover.pdf
123456_address_list.xlsx
123456_job.xml (the XML file itself)

As the ID isn't a static value my guess would be to use an assemble job element with a custom scheme and a "single-line text with variables" as the job identifier.
But how to proceed, I can select the ID from the metadata as a variable but how do I define what it should download and where to put it?

Re: Download all files with certain pattern

Posted: Sun Jul 12, 2015 11:54 am
by sander
If the FTP folder is all yours I would download everything from it, probably you are in need of the files sooner or later. Put a assemble job after it with custom scheme with 12345 as a variable you took from the XML, waiting for 3 corresponding files.
Sounds much easier to me.

If that's not the case, are the filenames to download defined in the XML? And is the _body etc. part always the same?

Sander