Download all files with certain pattern
Posted: Wed Jul 08, 2015 3:10 pm
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?
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?