Set folderpath from XML-field

Post Reply
Northlander
Newbie
Posts: 9
Joined: Wed Nov 15, 2017 3:34 pm

Set folderpath from XML-field

Post by Northlander »

Hi,

Im trying to set the path to a folder with the help from metadata.
My ERP is generating an xml which contains an orderID. On my fileserver there is a corresponding folder which name is the same as the orderID. I want to set the folder path to this folder and grab the files in there and use them in my flow.

I guess it should look something like this:
//192.168.163.188/orderFolder/[Metadata.Text:Path="/root/order/ordertag",Dataset="Xml",Model="XML"]

I just can't figure out which flowelements Im supposed to use.
Does anybody have any ideas?

Best regards
Anders
loicaigon
Advanced member
Posts: 379
Joined: Wed Jul 10, 2013 10:22 am

Re: Set folderpath from XML-field

Post by loicaigon »

Use the InjectJob element or the InjectLite element from AppStore if needed. In both case, this is where you will pass the dynamic file url and push the job into the flow.
You may as well set the Capture XML element so the xml file is actually the job and no further PDF file has to be expected.
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Set folderpath from XML-field

Post by gabrielp »

You can use the tool called Inject job (or a similar bit different one in the appstore called Inject Lite).

http://www.enfocus.com/manuals/UserGuid ... t_job.html
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Set folderpath from XML-field

Post by gabrielp »

loicaigon wrote:Use the InjectJob element or the InjectLite element from AppStore if needed.
You beat me... :lol:
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
loicaigon
Advanced member
Posts: 379
Joined: Wed Jul 10, 2013 10:22 am

Re: Set folderpath from XML-field

Post by loicaigon »

:P
Northlander
Newbie
Posts: 9
Joined: Wed Nov 15, 2017 3:34 pm

Re: Set folderpath from XML-field

Post by Northlander »

The inject lite app worked like a charm. Thank you so much! :D
Post Reply