I have a flow that contains an approval action so I have a "Start and wait for an approval" action. This approval step sends it to multiple people, so in the "Assigned to: " spot I enter the name of, say 3 approvers. But once they make a decision (either approve or reject), how do I branch off my next steps depending on their answers? I need to account for all permutations
A=Approve
R=Reject, so
A,A,A
A,A,R
A,R,R
R,R,R
Also doesn't matter the order (ie. Who approves and who rejects) only when there's a certain number of approves and rejects.
Solved! Go to Solution.
Hi @ay2,
You could initialize an integer variable to count the number of approve, after all approver responded, use Apply to each action to loop through each response, if it is equals to approve, increase the variable. After it, you could create a condition to determine the variable whether greater than the number you want, if it met, go to next steps:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Are the three approvals always going to the same place? I wonder if it might worthwhile to have 3 parallel branches each with a single person, and then aggregate the responses in the end with a Switch to determine the path based on the aggregated response.
Just a thought.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Hi @ay2,
You could initialize an integer variable to count the number of approve, after all approver responded, use Apply to each action to loop through each response, if it is equals to approve, increase the variable. After it, you could create a condition to determine the variable whether greater than the number you want, if it met, go to next steps:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
88 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
132 | |
47 | |
42 | |
36 | |
28 |