Hi.
I have a Flow with an approval (multiple approvers). When the approval is timed out, I need to get the responses of approvers who respond on time.
I configured a branch to execute only when Approval is Tinmed out, then I tried using "Responses", but I got a null value instead of array with responses. Attached images shows the part where I try to get the answers and configured branch.
How can I get the responses in a timed out approval?
Solved! Go to Solution.
Hi @Underdog1987 ,
As far as I know, if the execution result of the Approval action is time out, Body will not return anything.
It seems that your method is not working here, you could consider using the following method.
In the first case, if the number of Approvers is a fixed number, you might consider adding multiple parallel branches.
Configure the Approval action for each Approver and set the Approve type to first to respond. Record the Approver approval details when the Approval action is successful.
In the second case, if the Approvers staff is not fixed, you could use Apply to each to traverse all the users in strAsidtentes and configure the Approval action for the current user.
Record the approval details when the Approval action is successful. Note that you also need to set the Degree of Parallelism to the maximum.
Best Regards,
Hi @Underdog1987 ,
As far as I know, if the execution result of the Approval action is time out, Body will not return anything.
It seems that your method is not working here, you could consider using the following method.
In the first case, if the number of Approvers is a fixed number, you might consider adding multiple parallel branches.
Configure the Approval action for each Approver and set the Approve type to first to respond. Record the Approver approval details when the Approval action is successful.
In the second case, if the Approvers staff is not fixed, you could use Apply to each to traverse all the users in strAsidtentes and configure the Approval action for the current user.
Record the approval details when the Approval action is successful. Note that you also need to set the Degree of Parallelism to the maximum.
Best Regards,
@v-bacao-msft Understood on splitting the approvals into multiple approvals for each person, but how do you account for one person rejecting? In that case all the approvals should be cancelled, instead of waiting for the others to approve/reject/time out.