cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

"Approval type" = "Approve/Reject - First to respond" do not work correctly

When I send an approval with "Approval type" = "Approve/Reject - First to respond" it works as "Everyone must approve".  Only when all members responded for the request flow ends its work in other cases in stay in running state.

 

What had happened with "Start an approval" block? It has worked very well.

 

 Approval variantsApproval variants

 

Only with "Create an approval (v2)" it is possible to reach opportunity end flow after only one response. But this block does not have a method to get responder comments for the appropriate approval request. 

What to do in this case when old blocks absent and new one do not work correctly ???

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted

Hi @FreeNit ,

I think the issue is not about the 'Start and wait for an approval' action, it's about the 'Apply to each'.

The setting of "Approve/Reject - First to respond" means when there are multiple person in the 'Assigned to' in one Approval actionjust one person reply to the Approval email, the action will finish.

However in your flow, 'Apply to each' means there are three independent 'Start and wait for an approval' action.

So when the first Approval finished, the flow need to wait for the others.

It is the reason why you flow is in pending.

 

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

Hello.

As I mentioned you need to use a variable

1) Declare variables: first - string type, second - array type (without any values)

1.png

2) Use "Append to array variable" action. "Apply to each" will generated automatically in case of multiple values of approver`s emails.

2.png

3) Use "Join" action to connect array values with semicolon sign ";"

3.png

4) Set variable (with string type) to "Output" from "Join" block.

4.png

5) After that, you can use this variable for "Assign to" section in "Approval" block

5.png

View solution in original post

7 REPLIES 7
Highlighted
Solution Sage
Solution Sage

Hi @FreeNit ,

I have made a test with the 'Start and wait for an approval' action on my side, and it doesn't have the issue you mentioned. 

I setted  "Approval type" = "Approve/Reject - First to respond", and added multiple person in the 'Assigned to'.

The flow can run successful, when just the first person responded.

Capture.PNGCapture1.PNG

I suggest you make more test to check the issue if still exist.

 

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted

My flow sends an approval request for the group of persons based on some condition. These persons are located on another list and dynamically selected. So when in "Start and wait for an approval" block in "Assigned to" field I choose corresponding person`s group flow doesn`t stop work after the first response and waits for other responders from the group. 2019-03-11 13_27_10-Edit your flow _ Microsoft Flow.pngAnd the next picture shows when the flow is waiting for other 3 responders and doesn`t stop work.

2019-03-11 13_27_10-Edit your flow _ Microsoft Flow.png

Highlighted

Hi @FreeNit ,

I think the issue is not about the 'Start and wait for an approval' action, it's about the 'Apply to each'.

The setting of "Approve/Reject - First to respond" means when there are multiple person in the 'Assigned to' in one Approval actionjust one person reply to the Approval email, the action will finish.

However in your flow, 'Apply to each' means there are three independent 'Start and wait for an approval' action.

So when the first Approval finished, the flow need to wait for the others.

It is the reason why you flow is in pending.

 

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

I have solved this problem with the power of the variable.

Highlighted

I'm facing the same issue. Please tell me how you fixed this.

Highlighted

Hi FreeNit could u pls share the solution how u fixed it?

Highlighted

Hello.

As I mentioned you need to use a variable

1) Declare variables: first - string type, second - array type (without any values)

1.png

2) Use "Append to array variable" action. "Apply to each" will generated automatically in case of multiple values of approver`s emails.

2.png

3) Use "Join" action to connect array values with semicolon sign ";"

3.png

4) Set variable (with string type) to "Output" from "Join" block.

4.png

5) After that, you can use this variable for "Assign to" section in "Approval" block

5.png

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Users online (9,555)