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?
Download all files with certain pattern
Re: Download all files with certain pattern
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
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
Part of my playground:
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter
- HP Indigo 10k, HP Indigo 7600's (full options), Highcon Euclid III, Zünd S3
- HP Production Pro 6.0.1, HP Production Center 2.5.1 beta, Apogee 9.1, Enfocus Switch 13u1 & PitStop Server 13u2.
Chat: open-automation @ gitter