Seven Stars

Context with multi URL value

 

Hello, I have a job who returns 3 xml line, and I want for each line , connecting to my website and download the xml file , my url is like "www.mysite/download.aspx?SourceUrl=/" and after / add each line ( 2018-01-30T08_50_32.xml).

 

 

 

help_talend.PNG

 

how can I do this ? thank you !

 

 

re_help.PNG

 

 

1 REPLY
Moderator

Re: Context with multi URL value

Hello,

You can use tFlowToIterate to iterate all lines one by one, for example:
tFileInputXML-main(row1)-->tFlowToIterate--iterate--tHttpRequest-main--tLogRow
on tHttpRequest component, set the URI field as: "www.mysite/download.aspx?SourceUrl=/"+((String)globalMap.get("row1.URI")).

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.