Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Start and wait for an approval is only sending an email to the first approver selected.

(1) ShareShare
ReportReport
Posted on by 1
I have a flow set up to start and wait for an approval when a file is created in a data library. 
 
The flow pulls the list of "Approvers" from the data library and sends each of the approvers an email to approve or reject the new file. I tested every step one-by-one by adding test folders to the database, and everything was working great. A week later, I go to add a new file, and the flow runs, but only sends the first Approver in the list an email. It doesn't matter who the first Approver listed is, they are the only one to receive an email. I've been working on this problem for the whole day and have come up with nothing.
 
In the flows when they are in the "Running" phase, you can see that it knows how many approvers it should send the email to in the "Apply to each" step, but it only kicks an email to the first listed in the database. 
 
In the steps:
 
Examples of a "Running" sequence where it shows the number of approvers needed in the "Apply to each" step:
 
  • Suggested answer
    eetuRobo Profile Picture
    eetuRobo 2,687 on at
    Start and wait for an approval is only sending an email to the first approver selected.
    Thats because the Apply to each -loop will by default do one loop item at a time. There for it will wait until the first approval has gotten a response before going to the next loop item.

    To make it so that the loop goes through all of them in parallel toggle Concurrency control "On"


    Keep in mind that now it will not go through the items in any order which might be a problem depending on your flow structure.
    So for example its not recommended to use Set variable in a loop that has concurrency control since that might mess up your flow since it might update a variable to a certain value that could affect other loop that is running in parallel to it.


    But since the Apply to each loop seems to just send the approval then running it parallel should be fine

    Articles:
    https://community.dynamics.com/blogs/post/?postid=857abaac-e754-40ba-95f4-cb58e2ca00cc
    https://www.matthewdevaney.com/power-automate-apply-to-each-loops-20x-faster/
    https://www.linkedin.com/pulse/understanding-challenges-apply-each-parallelism-power-marcel-broschk-p33yf/
    https://www.beringer.net/beringerblog/advantages-of-concurrency-control-in-power-automate/

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard