cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting results from pipeline execution snap

adanmas
New Contributor

I have a simple pipeline that gets called through a trigger that takes multiple documents and calls a child pipeline through a pipeline execution snap. The child pipeline returns if the processing of the document is successful or not. I would like to be able to collect these responses and have that be part of the return value to the application that is calling that trigger.   I only seem to be getting the return value of the first document and not the rest of the documents although they are being processed.  Any ideas on how to collect the return values?

 

Parent Pipeline

Screenshot 2024-11-20 at 2.02.12 PM.png

Child Pipeline

Screenshot 2024-11-20 at 2.02.40 PM.png

2 REPLIES 2

stevegoodwin
Employee
Employee

Try adding a json formatter snap after the pipe exec

Ranjith
New Contributor II

Hi @adanmas ,

By default, the triggered task will wrap the response in an array format [{},{}] and send it to the client. Additionally, the response will include the original payload passed to the child pipeline. After the pipeline executes the snap, SnapLogic will send the response in this array format. You can verify the response by triggering it using Postman or any other available tools.