web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Parallel approval with...
Power Automate
Unanswered

Parallel approval without waiting for all approvers

(0) ShareShare
ReportReport
Posted on by 2
Dear all,
 
I'm new in Power Automate and after following some learn path and exercise, I'm trying now to create my 1st "real life" workflow.
 
My objective is to build a workflow to validate Purchase invoices in Business Central.
I found templates for that and started from there. The basic process is working fine.
 
The 2nd phase is to have members of a group to validate these invoices in parallel and not waiting on each others.
I found several entries in this forum as well as an article about such solutions. Therefore using parallel branches, I could achieve my point.
 
You may say that I could have used the Approval Type "Everyone must approve"...but here come my issue.
 
I have to meet following conditions:
  1. If any of the group member rejects the approval then it should be immediately rejected without waiting on others (a kind of first to respond)
  2. If 2 group members approve the approval it should be immediately approved without waiting on the 2 remaining members
I found some clues to fix point 1 by including a Terminal control in each branches, but I have no idea how to achieve point 2.
 
I though about incrementing a variable after each approval but I don't see how to just to approved state once the variable reach 2 as value.
 
By the way, I asked Copilot would configured an Approval Type to Parallel with some parameters like max approvers...but unfortunately these are not supported.
 
Any advise would be more than welcome.

David
Categories:
I have the same question (1)
  • Suggested answer
    ran_dale Profile Picture
    71 on at
    Hi David,
     

    To achieve the "first to 2" condition, where approval happens as soon as 2 members approve without waiting for the others, you'll need to use a combination of counters and conditional logic. 

    Below a possible approach:

    Create an Approval Count Variable

    Introduce a variable in the workflow to keep track of the number of approvals.

    Increment the Variable

    After each approval from a group member, increment this variable by 1.

    Check the Count

    After each increment, check if the value of the variable equals 2.
    If the count equals 2, then immediately trigger the approval workflow completion and skip any remaining branches

    Hope this helps!

    ~Dale
  • David_MA Profile Picture
    12,966 Super User 2025 Season 2 on at
    You would need to test this, as I am not sure if this would even work. Try this:
    1. Create an integer variable named Approvals and set the default value to 0.
    2. Create an integer variable named Rejections and set the default value to 0.
    3. Add a Do Until action and have it run until it meets this condition: @or(equals(@{variables('Rejections')},1), equals(@{variables('Approvals')},2)
    4. Then set up the approvals as you describe in parallel.
    5. Use a switch after each approval on the outcomes and then increment either the Approvals or Rejection variable by 1 after a response is received. Your flow will look something like this, but with a switch under each of the approvals:
    The potential issues I see:
    • Will the Do until actually proceed when it meets the condition even though there could be approvals still pending?
    • If it does continue, then how do you cancel the pending approvals?
    • What happens if you get two approvals, but after you get the two, someone else rejects it? Does that not matter?
     
    You may want to check out Reza Dorrani's YouTube channel at Power Platform Training & more with Reza Dorrani Channel Memberships (youtube.com). He has made a number of videos on approvals with different scenarios, and he might have one that covers your use case.
  • DH-26091348-0 Profile Picture
    2 on at
    Thank you very much for you feedback and proposals.
    I will try them out and let you know if it works.
     
    @Dale, how would you do this part?
     

    If the count equals 2, then immediately trigger the approval workflow completion and skip any remaining branches

    Regards


    David

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard