Context with multi URL value

Highlighted
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 Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch

Definitive Guide to Data Quality

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

Download