cancel
Showing results for
Did you mean:
Helper II

## Branching from approvals

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support

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.

2 REPLIES 2
Most Valuable Professional

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.

Community Support

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.

Announcements

#### Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!