web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Optimizing flow durati...
Power Automate
Unanswered

Optimizing flow duration & improve performance : no concurrency apply to each

(0) ShareShare
ReportReport
Posted on by 62

Hello everyone,
I have a quite big flow that gets all MS365 groups which name begins with "Project1-" :

atreyu_0-1693905230315.png

 


and for each group, I get their Planner plans (name begins with "Project1 Plan-") and set several variables to get  Countries etc...

atreyu_1-1693905279004.png


For each task in these plans, I then proceed to set other variables, do some data composing and add a row in Excel,

atreyu_2-1693905345450.png

At the end of each "Apply to each" control, I reset the variables, so the following task or group can use and replace it.

And then, I call a Power BI dataset refresh (outside of the For each group control)

This is okay, I got the main part running, and my two big "Apply to each" controls have "Concurrency control" to off, because of the variables.

I have been testing on 4 groups, and they have 50 to 125 tasks.
My flows proceeds the two first groups in 10min each (they have an average of 50 tasks ). Fine.
Then, for the two last groups (which have an average of 106 tasks), it takes 30 min each. Why not ?

Except that ...  those are only my tests.

When I'll be on production, the flow will get 150 groups with each having between 50 and 150 tasks. At maximum, the flow will take 75 hours (3 days approx) to finish, which is inside the 30 days run duration limit (Limits of automated, scheduled, and instant flows - Power Automate | Microsoft Learn), but I would like to know : how could I optimize this flow ?
Even using Child and Parent flows, I'm not sure it will decrease the duration (and for now, I do not have the right to create/use solutions).

Do you have any idea how I could optimize and lessen the flow's run duration please ?
I know I always go first to the complicated solution rather than a simpler one, so maybe here that's the case and i missed a simpler one. 

Thanks a lot 🙂

Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    For each "Apply to each"  loop you can decide on the parallelism level. If it is safe to do so (no interdependency) crank it up all the way to 50. If not (you seem to hint at variables), you should refactor that part so that it can  process in parallel. 

     

    Make sure your source system can handle the load and doesn't pout back with a 429.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard