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

Apply for each Parallel for approvals

 

I read Apply for Each was originally Parallel and then Sequential and now with a choseable behavior. - in theory.

I really support this feature as I see both behavior is unavoidable sometimes.

 

Now i want to send out a number of approval letters in an Apply for each loop for a number of users. In this case parallel operation is absolutely necessary, However I see receiving the next approval (for test i've sent them all to myself) right after I accepted the first.

 

So they seem operating in sequential. Independently of the switch state in the settings menu in the for Each block.

How can I do this parallel?

 

g.

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Apply for each Parallel for approvals

Hi katonage,

 

Please check this doc about apply to each:
https://flow.microsoft.com/en-us/documentation/apply-to-each/

 

From the doc we know that we can use the loop apply to each to process a list of items. In your case to send out a number of approval letters for a number of users, however, the approval emails would be sent one by one in sequential.

 

So I am afraid that currently it is not possible to send out approval emails parallel, please consider to create a request at Flow Ideas Forum, I will help collect it on my side.
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
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
Advocate V
Advocate V

Re: Apply for each Parallel for approvals

 

With the renewed parrallel apply for each (thanks!), I could do the trick using 'send email with action'. it does not works with the approvals. However functioning is suboptimal because of the maximum 50 parallel threads of the for each loop. The 51th aprroval request goes out only if someone has replied from the first batch of 50...

 

View solution in original post

8 REPLIES 8
Highlighted
Community Support
Community Support

Re: Apply for each Parallel for approvals

Hi katonage,

 

Please check this doc about apply to each:
https://flow.microsoft.com/en-us/documentation/apply-to-each/

 

From the doc we know that we can use the loop apply to each to process a list of items. In your case to send out a number of approval letters for a number of users, however, the approval emails would be sent one by one in sequential.

 

So I am afraid that currently it is not possible to send out approval emails parallel, please consider to create a request at Flow Ideas Forum, I will help collect it on my side.
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
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
Advocate V
Advocate V

Re: Apply for each Parallel for approvals

 

I dont see in the attached document what limits the apply for each by processing approvals in parrralel. 

 

Anyhow, I 've created a flowidea, please vote:

https://powerusers.microsoft.com/t5/Flow-Ideas/Apply-to-each-for-Approvals-send-out-many-approvals-i...

Until this idea is not developed/released, or there is no circumvention for the problem, I dont consider the current discussion as solved.

Anonymous
Not applicable

Re: Apply for each Parallel for approvals

The solution is to create a seperate "work list" - we'll call it ListB

Have your "for each" create a new list item in ListB. 

Then create a flow with an "When a new item is added" trigger on ListB, and have that same flow have an approval step. 

Highlighted
Advocate V
Advocate V

Re: Apply for each Parallel for approvals

That is a nice idea, i also consider it implementing since I already have a list in may plans which might serve as "ListB" too.

However this is a pretty ugly, cumbersome and resource intensive workaround, so I wont accept it as a solution.

Highlighted
Helper I
Helper I

Re: Apply for each Parallel for approvals

A workaround (which at least for me is working) consists of adding a Flag in the Filter Query to retrieve items of the Get Items action. The flag is just one of the Item fields which is set up front the start of the approval cycle and hence reduces the number of docs that are retrieved at next run time. Each time the scheduled flow is started it only runs on the items for which the flag is not set. After a few cycles there are no more items to be considered and all approval requests were sent.

Start Approval in Apply to each.png

 

 

Highlighted
Advocate V
Advocate V

Re: Apply for each Parallel for approvals

 

With the renewed parrallel apply for each (thanks!), I could do the trick using 'send email with action'. it does not works with the approvals. However functioning is suboptimal because of the maximum 50 parallel threads of the for each loop. The 51th aprroval request goes out only if someone has replied from the first batch of 50...

 

View solution in original post

Highlighted
Advocate V
Advocate V

Re: Apply for each Parallel for approvals

 
Highlighted
Advocate II
Advocate II

Re: Apply for each Parallel for approvals

I'm doing a "Send email with options" inside an "Apply to each" with the parallelism / concurrency set to 50.

 

Still the next email is only sent when the previous one is responded to.  So it's not parallel.  It's sequential.

 

So this appears to not be "Completed" or "Solved!".

 

Microsoft have had a workflow product for over a decade and it still can't do a simple parallel approval email workflow without workarounds.  That's really p*ss poor.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (6,751)