Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone, I'm a beginner in Talend, so basically I need to call a REST API, extract one column of the response (array of ids), and then for each ID I need to call another REST API to extract more data. How can I do that?
I managed to get to the array of ids but I have no idea how to interact over each ID to call my next endpoint.
any help would be very appreciated.
Hi you can use tFlowtoIterate component after tExtractJsonFields with a main link then you use an iterate link on tRestClient and in the tRestCLient component you use the globalVar of the tFlowToIterate:
eg : if row2 is between tExtractJsonfield and tFlowToIterate then the variable will be (String)globalMap.get("row2.id").
Send me Love and Kudos
Hi you can use tFlowtoIterate component after tExtractJsonFields with a main link then you use an iterate link on tRestClient and in the tRestCLient component you use the globalVar of the tFlowToIterate:
eg : if row2 is between tExtractJsonfield and tFlowToIterate then the variable will be (String)globalMap.get("row2.id").
Send me Love and Kudos
i cant create an iterate link between tFlowtoIterate and the next tRestClient
so you can iterate on a tJava empty and you put an on component ok link between tJava and tRestClient
i managed to create the iterate link by using normal tRest
is there any difference between tRestClient and tRest?
if you are familiar with tRestClient keep it :
tFlowToiTerate-->iterate link--> tJava (nothing inside)-->on component ok link--> tRestClient
thank you it worked