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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow Taking hours - Sharepoint list to excel template.

(0) ShareShare
ReportReport
Posted on by 18

Hi, 

 

I have a flow that pulls the information from a sharepoint list and puts it into a excel template. But it seems this is taking hours because of the large amount of data. However when this is completed at night it only takes 20minutes. This sticks at "apply to Each"

 

Is there any recommendations you could suggest to speed things up? I have broken it down to Parent Child Flow to see if this improves however this hasn't worked. 

 

Jcurtis16_0-1676031723484.pngJcurtis16_1-1676031760432.png

 

I have the same question (0)
  • grantjenkins Profile Picture
    11,059 Moderator on at
    Re: Flow Taking hours - Sharepoint list to excel template.

    How many items do you have in your list?

  • Jcurtis260 Profile Picture
    23 on at
    Re: Flow Taking hours - Sharepoint list to excel template.

    700 however this is growing. I have added Filter query to bring this down because it should be approximately 750 to export into excel. 

     

    Is there a better way to do this ?

  • Jcurtis16 Profile Picture
    18 on at
    Re: Flow Taking hours - Sharepoint list to excel template.

    So i run a test where i can take the data and just put it into a excel which it completes instantly. however as soon as I want the data to go into a table. this is where the task takes hours. 

  • grantjenkins Profile Picture
    11,059 Moderator on at
    Re: Flow Taking hours - Sharepoint list to excel template.

    @Jcurtis16 Sorry for the delay in getting back to you - been in workshops the last couple of weeks.

     

    There are a few options that could help:

    1. Setting Concurrency on your Apply to each so it runs in parallel (not sequentially).
    2. Splitting out multiple Apply to each actions into Parallel Branches (a bit more complicated using skip and take).
    3. Using an Office Script including defining the Table, etc.
    4. Using the Graph API (requires you to have access to use Premium Connectors).

     

    The 4th option (using the Graph API) is definitely the quickest in my opinion. But not available unless you have access to Premium Connectors. It also uses just a few billable actions as appose to 800 (each Add item in the loop).

     

    The 3rd option would be another good option in terms of efficiency.

     

    Below shows the 1st option, using Concurrency on the Apply to each that adds 800 items to my Excel Table. The only caveat is that the items won't be added to your Excel Table in the same order you have them in SharePoint.

     

    grantjenkins_0-1677382511898.png

     

    grantjenkins_1-1677382543775.png

     

    Without Concurrency it took approx. 19 minutes.

    With Concurrency set to a Degree of Parallelism of 10, it took approx. 8 minutes.

    With Concurrency set to a Degree of Parallelism of 20, it took approx. 8 minutes.


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • takolota1 Profile Picture
    4,944 Moderator on at
    Re: Flow Taking hours - Sharepoint list to excel template.

    You could also try something like this template that takes a CSV, creates a table, then posts rows to the table in batches…

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-To-New-Excel-Table/td-p/1826096

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard