Context with multi URL value

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

 

 

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.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads