Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
My first REST call returns ID that I need to use in second REST call URL (GET request)
I thought in URL I can do something like:
context.host + row2.id
or
context.host + globalMap.get("row2.id");
but I'm getting "row2 cannot be resolved to a variable" error.
How do I reference this "id" in tRest and other components?
Thanks,
Dima
Hi Dima,
Just add a tFlowToIterate immediately before your map, and you'll be able to reference row2.id.
Regards,
Chris
Can you either use debug or drop a tLog in there to ensure you do actually have data in the field?
It does return the correct ID
Can you show the entire job with the tFlowToIterate in place? Thanks.
That's it! Thanks a lot. I guess I can only reference "row2.id" in tMap but for components like tRest I need to declare a variable