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
------------------------------------------------------------------------------------------
Thanks for your help in advance
Solved! Go to Solution.
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.
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.
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
75 | |
22 | |
18 | |
17 | |
13 |
User | Count |
---|---|
127 | |
37 | |
29 | |
28 | |
25 |