cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mohammedhassira
New Member

when item is created every om must approve - need help

Hello all,

 

I have a simple flow for travel request, When persons approve to the travel request, the requester receives an email rejecting the request, Please I need help for this issue,

 

Please note that I have five approval persons

 

 

Mohammedhassira_1-1656953280740.pngMohammedhassira_2-1656953343493.png

 

Mohammedhassira_0-1656952832165.png

 ------------------------------------------------------------------------------------------

 

Mohammedhassira_5-1656953593054.png

 

 

 

Thanks for your help in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

The problem is the way you are testing the Outcome of the approval.  Approvals with multiple approvals return an Outcome that is a comma delimited list of the responses of each person until either all approve or someone rejects.  So with 5 approvers Outcome will look something like this "Approve, Approve, Approve, Approve, Approve" or "Approve, Approve, Reject". Since a rejection will change the number of entries in the list I find it best to see if Outcome contains "Reject".  If it does then the approval failed.  If it doesn't then the approval was successful.  In your case "Approve" is not equal to "Approve, Approve, Approve, Approve, Approve" so it will never be considered approved.



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

The problem is the way you are testing the Outcome of the approval.  Approvals with multiple approvals return an Outcome that is a comma delimited list of the responses of each person until either all approve or someone rejects.  So with 5 approvers Outcome will look something like this "Approve, Approve, Approve, Approve, Approve" or "Approve, Approve, Reject". Since a rejection will change the number of entries in the list I find it best to see if Outcome contains "Reject".  If it does then the approval failed.  If it doesn't then the approval was successful.  In your case "Approve" is not equal to "Approve, Approve, Approve, Approve, Approve" so it will never be considered approved.



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!
Mohammedhassira
New Member

Thanks a lot for your answer and help, I'll use "Outcome doesn't contains Reject" in my flow according to your advice ,, if that is possible?

 

Best regards

That should work fine as long as you are using the standard approval responses.



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

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (5,238)