Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Slow workflow in a loop

Hi there wondering if anyone can help with debugging a slow loop.   I have a workflow which iterates through users and adds them to a site via an api. 


For 30 users, if you look at the times per branch it is approximately 10secods , so should take 5 minutes. But instead takes 20 minutes.   


Does anyone know any smart way to try to work out where the delay is happening as its not obvious in the workflow ? 




Community Support
Community Support

Re: Slow workflow in a loop

Hi @johndavies,


Could you please share a screenshot of your flow's configuration?

Which license does your Microsoft Flow belong to?


Actually, the run time of "Apply to each" action is not equal to the total of the run time of per branch, the "Apply to each" action would have its own trigger interval. 


In addition, the license of your Microsoft Flow would take a effect on the run time of your "Apply to each" action. More details about different licenses of Microsoft Flow, please check the following article:


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Re: Slow workflow in a loop

Hi there we are still in testing . I have run a licence file it seems odd but here it is 

Flow FreeFlow Free1/10/2017 5:38TRUE
Flow for Office 365Office 365 Education Plus for faculty1/10/2017 5:35FALSE
Flow Plan 2 TrialFlow Plan 2 Trial10/30/2017 10:58:37 PMTRUE
PowerApps for Office 365Office 365 Education Plus for faculty1/10/2017 5:35FALSE
PowerApps TrialPowerApps Plan 2 Free Trial3/15/2017 1:52:30 AMTRUE


I assumed i was on the flow plan 2 trial .


 In regards to the trigger interval of the apply to each, Ive looked at the pricing I cant work out what the interval of the apply to each is ? 


 i will try to post a screenshot

Frequent Visitor

Re: Slow workflow in a loop


So for example in this loop each loop takes approximately 10 seconds x 44  = approx  7 minutes , but takes, 44 minutes.  But now I note your comment about timings and trigger intevals is it just that it delays it to 1 minute per loop regardless of the timings ?


Thanks John


Helpful resources


August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!


Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (4,211)