cancel
Showing results for 
Search instead for 
Did you mean: 

ForEach output mapping

michael_eyre
New Contributor

Hello,

I am working on a pipeline that calls one API to get a list of values. I am then using the list of values in a ForEach to call another API. All of the API calls are working. I am trying to get the output of the ForEach API calls appended to the original list of JSON documents.

When I add a Mapper to the end of the ForEach, there doesn’t seem to have any data to map.

How can I get the results from the ForEach pipeline in the original pipeline?

Thanks

Michael Eyre

2 REPLIES 2

michael_eyre
New Contributor

Hello,

I have made some progress. I found the Pipeline Execution snap and read the documentation and it stated that it was replacing the ForEach snap. After configuring the Pipeline Execution snap, I was able to get the results from the “loop” of the documents.

ryan_a
New Contributor

Hi Michael,

I'm new to SnapLogic and I'm attempting to do exactly the same thing.  I'm completely lost on how to loop through the list in JSON document for the list of links received from the initial rest get.  Do you happen to still have this pipeline and if possible, would it be possible to share a screenshot?  Thanks.