Send the incoming payload to the foreach loop ,After the foreach loop can't get the response payload from the foreach loop.
1 Answer
For the Foreach loop ,after the each loop the response payload is forgot. It seems Fire and Forgot.
To overcome this Fire and Forgot ,we need to store the response payload after the each iteration.
- Create a Flow variable with empty payload.
- Create a Transform message inside the Foreach loop. Click the Edit current target icon in Transform message and change the output type to variable and enter the variable name, then append the response payload for each iteration to the output variable by flowVars.output + payload .
- Create the Transform message after the foreach loop. Finally Print the Response payload by
flowVars.output
.
Hope Its Help.