
Announcements
I'd like help understanding concurrency in a Power Automate flow's Apply to Each operation when it makes an external HTTP call and processes its response, please.
I have a PowerApps-triggered flow which
I therefore end up with a table that allows me to link MyID and TheirID. Any variables within the Apply To Each loop are Composed, and its only external references are to JSONOut and JSONIn.
I have the Apply To Each operation set with Concurrency Control on and Degree of Parallelism 1. This all works fine, but could do with speeding up. Can I safely increase the parallelism to improve speed, or does this risk getting a wrong TheirID for a MyID?
I'm a bit hazy about the Apply To Each operation, and whether each iteration is safely scoped such that the response from the external web service is always aligned with that iteration's item()?['MyID'], no matter how long it takes. The order in which records are created in JSONOut doesn't matter.
If I am correct in my understanding that there is no locally held variables in the Apply to Each loop, you should be able to safely increase parallelism within the loop. If you are using the index of the original value in JSONin to find values in JSONout at any later point then issues may arise, but if the order of the values in the output is irrelevant than increasing parallelism would safely speed up your process. You may need to tweak the retry policy on your HTTP call as you're more likely to encounter a 5XX error calling the service multiple times simultaneously.