Hi there,
The output has a body but does the body have an appropriate array that matched the foreach?
You can't pass a non-array field to the foreach function.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
confirmed the Output has JSON in the body
Hi there,
The output has a body but does the body have an appropriate array that matched the foreach?
You can't pass a non-array field to the foreach function.
@Mukesh Adhikari (AU) Thanks for reaching out. As per the error message your triggerOutput i.e. the trigger that you are using in your logic app workflow has the output body, but it doesn't have any value i.e. it is coming as null. If this is the expected output from your trigger output that the body has the null value, then you can handle this in your workflow.
Before your foreach action you can leverage the condition action to verify if the body is not null. If it is not null, then under if true you can specify the foreach statement and rest of your workflow.