I can't find any information as to what the possible output from the dynamic content "Outcome" from "Wait for Approval V2" is. Consequently my conditional branch always goes to "no".
Can anyone help?
Solved! Go to Solution.
Hi @Starbug1 ,
If Assigned To contains multiple approvers, Outcome will record the details of the approval results.
The results will include the results selected by Approver that actually complete the approval. You could use Compose to view the Outcome, like:
Basically Outcome contains a Reject, the request is rejected. So you only need to use condition to determine if Outcome contains Reject.
Or if you only focus on the final approval result, you could use Start and wait for an approval directly, and then determine whether the Response is equal to Approve or Reject.
Best Regards,
Hi @Starbug1
I just made a test on my environemnt and it worked fine.
the possible outcomes I iterated over are: "Approve", "Reject".
Any particular reason that you are not using teh Start and wait for an approval action?
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Starbug1 ,
If Assigned To contains multiple approvers, Outcome will record the details of the approval results.
The results will include the results selected by Approver that actually complete the approval. You could use Compose to view the Outcome, like:
Basically Outcome contains a Reject, the request is rejected. So you only need to use condition to determine if Outcome contains Reject.
Or if you only focus on the final approval result, you could use Start and wait for an approval directly, and then determine whether the Response is equal to Approve or Reject.
Best Regards,
@v-bacao-msft That worked perfectly, thank you for your help.
Edit - Ignore below - I can see now it's to inspect the outcome variable to be able to set the condition!
What is purpose of the "Compose" action? Would the conditional branch not work if just acting apon the "Outcome" result from the Wait for an Approval?
Thanks again!
@yashag2255 I found that it was dificult to understand what the difference is between the mechanics of Start and Wait, and Start....Wait.
I want to enhance to add a timeout to the request - so I thought (I'm doing a lot of guessing here) I could insert this between the two stages?
User | Count |
---|---|
99 | |
38 | |
27 | |
23 | |
16 |
User | Count |
---|---|
130 | |
52 | |
48 | |
36 | |
24 |