Forum Discussion

adanmas's avatar
adanmas
New Contributor
8 months ago

Collecting results from pipeline execution snap

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

Child Pipeline

2 Replies

  • Ranjith's avatar
    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.