cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
randalloglesby
Level: Powered On

If Response from Approval A OR Approval B is equal to 'Approve"

I'm building an approval structure where a condition decides who to send an approval to. How do I create an apply to each that starts if Approval A OR Approval B = "approve"

 

Approval dillema

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: If Response from Approval A OR Approval B is equal to 'Approve"

How about this...

 

The flow checks to see if the approvers title is CEO.  If it is, an alternate approver is selected.

The approver selection is done via an if expression:

if(equals(body('Get_manager_(V2)')?['jobTitle'],'CEO'),'scott@yourco.com',body('Get_manager_(V2)')?['mail'])

 

If the managers title is CEO, then another approver is selected.  Otherwise the manager is selected.

 

approval1.pngapproval2.png

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

7 REPLIES 7
Super User
Super User

Re: If Response from Approval A OR Approval B is equal to 'Approve"

Can you possibly have 1 approval action for apprvers A and B and set it to "anyone from the assigned list"?

No apply to each should be required.

 

AorBApprove.png

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
randalloglesby
Level: Powered On

Re: If Response from Approval A OR Approval B is equal to 'Approve"

Unfortunately the condition for approval A/B is required so that the approval ends up in the right hands.

Super User
Super User

Re: If Response from Approval A OR Approval B is equal to 'Approve"

Could you please elaborate on your requirement a little more.  An approval set-up to allow for anyone to approve seems to meet the requirement.  Both approvers receive email notification.  Once approved, you can check to see who actually approved the item and process the request further as appropriate.

 

Of course, I could be missing something.....

 

Thanks,

 

Scott

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
randalloglesby
Level: Powered On

Re: If Response from Approval A OR Approval B is equal to 'Approve"

The flow enters a condition to check on the user's manager. If the manager is the CEO of the company, we want the approval to go to someone else. If it isn't, then we want the approval to go to the users manager. The approval can't go to both managers, it's either Approval A OR Approval B. NOT both.

 

Ultimately, we need to set up as task that checks if A or B was approved so we can notify the user.

Super User
Super User

Re: If Response from Approval A OR Approval B is equal to 'Approve"

How about this...

 

The flow checks to see if the approvers title is CEO.  If it is, an alternate approver is selected.

The approver selection is done via an if expression:

if(equals(body('Get_manager_(V2)')?['jobTitle'],'CEO'),'scott@yourco.com',body('Get_manager_(V2)')?['mail'])

 

If the managers title is CEO, then another approver is selected.  Otherwise the manager is selected.

 

approval1.pngapproval2.png

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

randalloglesby
Level: Powered On

Re: If Response from Approval A OR Approval B is equal to 'Approve"

This should work, thank you so much!

Super User
Super User

Re: If Response from Approval A OR Approval B is equal to 'Approve"

Great!

If it works, please indicate that your issue has been solved.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

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!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,019)