How can i collect the combined outputs from a for-each loop in Azure Logic Apps

Herries, Roddy 0 Reputation points
2024-05-20T14:49:22.0933333+00:00

Hi,

I am trying to collect the outputs of a for-each action in my azure logic app. The logic is this:

Send and approval request to each approver (email), then subscribe on a webhook for the approval responses (I do this with a correlation ID outside of the process). Collect the result of all the callbacks (approve or reject). If anyone rejected then the overall decision is reject, otherwise it is approve.

From my reading and experimentation it seems difficult to collect the results in a for-each like this, especially if the for-each runs concurrently due to the lack of any way to safely update shared state between the concurrent activities.

I wondered if there are any solutions/workarounds to this?

Screenshot 2024-05-20 at 15.47.51

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,908 questions
{count} votes