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.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog