Skip to main content
Post

#PowerPlatformTip 75: 'Boost Efficiency with Concurrency Control'

#PowerPlatformTip 75: 'Boost Efficiency with Concurrency Control'

TL;DR: Turn on Concurrency Control on an ‘Apply to each’ loop to run up to 50 independent iterations in parallel instead of one-by-one. Variables shared between iterations need sequential processing, and a high parallelism value can add overhead or trigger throttling.

💡 Challenge

By default, “Apply to each” (For each) loops in Power Automate execute their items sequentially - one after another. If each iteration is independent, concurrency can run several items at the same time. Actual run time depends on the actions, connector limits and the selected degree of parallelism.

✅ Solution

Enable Concurrency Control on the loop and choose a degree of parallelism from 1 to 50. A higher value is not always faster: scheduling overhead and connector throttling can affect the result.

🔧 How It’s Done

1. Open the loop settings

🔸 Click the … (ellipsis) on the “Apply to each” action and choose Settings.

2. Enable Concurrency Control

🔸 Turn on Concurrency Control and drag the Degree of Parallelism slider to the desired value (up to 50).

3. Keep within the loop limit

🔸 The loop’s degree of parallelism is limited to 50. A child flow can separate work, but it does not remove the parent loop’s limit.

Power Automate real flow run: Concurrency Control settings pane showing it turned on with Degree of Parallelism set to 50 Real flow: the “Apply to each” loop’s Settings tab under Allgemein/General, Parallelitätssteuerung (Concurrency Control): Ein, Grad der Parallelität (Degree of Parallelism): 50.

Power Automate real flow run: 5 loop iterations complete in 0.4 seconds total with concurrency enabled Real flow run: with concurrency on, the whole 5-item “Apply to each” loop, expanded to iteration 1 of 5, completes in 0.4 Sek. total. The run time alone doesn’t show whether the iterations really overlapped; check the start and end times of the iterations for that.

🎉 Result

Independent items can run simultaneously. Compare run history with representative data to see whether the selected degree reduces the total run time.

🌟 Key Advantages

🔸 Speed & Efficiency: Parallel processing dramatically reduces overall execution time, especially for large data sets.

🔸 Bounded parallelism: Choose a degree from 1 to 50 and test it against connector limits.

🔸 Separate work: Child flows can isolate per-item logic, but they have their own run limits.

⚠️ When NOT to Use Parallelism

Concurrency Control only works when the iterations are independent of each other. Actions inside one iteration may still depend on the result of the previous action of the same iteration; what causes trouble is a dependency between different iterations. Do not enable it if your loop:

🔸 uses Increment variable / Decrement variable (counters),

🔸 uses Append to array variable or Append to string variable,

🔸 or otherwise reads and writes the same variable across iterations, writes to the same external target (the same row, file or list item) or needs a fixed order between the items.

When several iterations run in parallel, they may read or update shared variable state at the same time. The result can be unpredictable. Keep loops that depend on shared variable values sequential, or redesign the flow so iterations do not share mutable state.

⚠️ Also watch for throttling: Even with independent actions, excessive parallelism against a single connector (e.g., SharePoint, Dataverse) can trigger throttling and make your flow slower. Always test and monitor to find the optimal balance.

💡 Related: If your goal is the opposite - forcing a flow to run one instance at a time to reduce overlapping runs (running one at a time prevents overlap, not the repeated processing of the same event, so use a unique business key or a check for already processed events against real duplicates) - see #PowerPlatformTip 35: ‘Concurrent Control’.

🎥 Video Tutorial

🛠️ FAQ

Q: What is Concurrency Control in Power Automate?

Concurrency Control lets you configure the number of parallel threads for an “Apply to each” loop, so multiple iterations run simultaneously instead of sequentially.

Q: What is the maximum degree of parallelism I can set?

You can set the degree of parallelism from 1 to 50 for an “Apply to each” loop. A child flow doesn’t raise this limit on the parent loop.

Q: Why does my array or counter get wrong values after enabling parallelism?

Because “Increment variable” and “Append to array variable” share a single variable across all iterations. Running them in parallel causes race conditions where iterations overwrite each other. Keep such loops sequential (degree of parallelism = 1) or build the result without shared state: Select gives a one-to-one projection of the items, union() merges arrays but removes duplicates, so use it only when deduplication is what you want. Don’t keep changing the same variable in parallel.

Q: Will setting a high degree of parallelism cause throttling?

It can. High parallelism can add scheduling overhead or lead to connector throttling. Compare a few settings with representative data.

🔸 #PowerPlatformTip 5: ‘Less Variables’ - swap Initialize Variable for Parse JSON/Compose so a loop stays eligible for the parallelism described above.

🔸 #PowerPlatformTip 36: ‘Static Result’ - test different concurrency settings safely without hitting the real connector every time.

This tip is by Marcel Lehmann, Microsoft MVP (Business Applications) and founder of the Power Platform Academy, which runs free live workshops (in German). See the next free workshop dates (in German). For companies that want this implemented for them, see KMUpower: Power Platform consulting & automation for SMEs (DACH).

This post is licensed under CC BY 4.0 by the author.

Microsoft and the Power Platform product names (for example Power Apps, Power Automate, Copilot Studio) are trademarks of the Microsoft group of companies. This is an independent website. It is not operated, sponsored or endorsed by Microsoft.