cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

Flow Approval - Dynamic parallel approval, end when anyone rejects

Hi

 

I've a requirement to send approval requests to multiple teams at once in parallel. User fills the data in a SharePoint list, selects the different teams(choice column that allows multiple selection) and other metadata and submits.  Each team has a set of approvers. Once the form is submitted then the flow sends approval requests to approvers of all selected teams in parallel. I've managed to get the dynamic parallel approval process working using the foreach action and setting the concurrency control for the foreach loop of teams. (https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-send-parallel-approval-requests-to-a...

 

Within the forach loop of team, I get all the approvers for the respective team which looks like approver1;approver2;approver 3 etc., start an approval process with approval type set to anyone from the assigned list which means any approver from the team can complete the approval process. I'm able to collate the approvals from all the teams and decide whether the request is approved by all or rejected by one or more teams. What  I would like to do is, when any approver from a team rejects the request then terminate the approval process completely and send a mail to requestor without other teams approvers having to complete their approval process. Also remove the pending approvals from the approvers of those teams that have not yet reviewed. Is there a way to achieve this?

 

Thanks

 

 

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Flow Approval - Dynamic parallel approval, end when anyone rejects

Hi @Rajesh,

 

Do you want to terminate the flow when any approver Reject the request?

Do you want to stop other parallel approvals when a team rejects the request?

Please check the following flow for a reference.

Under the action Start an approval, add a Condition to check if Responses contains Reject, if yes, terminate the flow and set the variable to Failed.

1.PNG

Besides, it is not possible to remove pending approvals from the approvers that have not yet reviewed, if you need this feature, please submit a request on Flow Ideas Forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Advocate II
Advocate II

Re: Flow Approval - Dynamic parallel approval, end when anyone rejects

The start approval process is within the foreach loop as the number of teams is dynamic as shown below. I've turned on the concurrency control on the foreach control so that all teams are notified at once and approvers from the respective teams can start reviewing the request in parallel.  I would like to terminate when any approver from a team rejects the request. Requestor is notified that request is request is rejected and needs to amend and resubmit

 

approval.png

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,282)