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:
- 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)
- 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