Run Apply to each in parallel
Quiz question
When must you not raise the concurrency of a loop?
Solution
- A) When it has to process more than a hundred itemsWrong. Concurrency saves the most time precisely when there are many independent items.
- B) When it increments a variable or appends to an arrayCorrect. Variables in parallel loops give unpredictable results. If you use variables, the loop has to run sequentially.
- C) When it reads items from a SharePoint listWrong. The source does not matter. What counts is whether the iterations depend on each other.
What it is about
Apply to each processes items sequentially by default. If iterations are independent, turn on Concurrency control in the loop settings and raise Degree of parallelism to at most 50. Several iterations then run at the same time. Variables in parallel loops give unpredictable results. If you use variables, the loop has to run sequentially. Set Apply to each: Concurrency control, Degree of parallelism 1. This applies to counters or arrays you append values to. For independent iterations, you can build the result with Select or union() instead. Also check the order: if a step needs the previous step's result, parallelism does not fit. Too many concurrent calls to the same connector can also cause throttling.
When to use it, when not
Use it
When every iteration stands on its own, such as one email per person or one update per record.
Better not
When iterations change the same variable or the order matters.
Most common mistake
Turning on concurrency and still using Increment variable inside the loop. The counter is wrong afterwards.
License
Standard This technique uses standard connectors. Microsoft 365 usage rights cover standard connectors. Check the rights for your whole flow. Source on Microsoft Learn: Power Automate licensing FAQ. For your whole flow: License check.
Share
Short link: powerautomate.ninja/en/75
Source: PowerPlatformTip #75, Microsoft Learn: Limits of automated, scheduled, and instant flows.
Prefer to continue with guidance? The Power Automate live course (in German) at the Power Platform Academy runs over four weeks. The next dates are not set yet, you can join the waiting list on the course page.