Showing results for 
Search instead for 
Did you mean: 
Zango Advocate I
Advocate I

Manipulating all SharePoint list data



I am trying to create a trends list that should collate totals from a couple of different lists that I can fill periodically (every week or every month or so).


I wrote some javascript to test I knew what I wanted to get from the rest api and manipulated the data like I wanted ready to post back and create a new item in the trends list.


I have tried to rewrite this using MSFlow but seem to be having some performance issues.


First i initialize a variable called NextLink with the rest query for all items (if more than 100 items it returns a nextLink parameter which I use to replace this)

I also initialize a variable for an empty array


Then I start a do until condition because I want to put all items into the array not just the first 100

In this do until I use the "Send an HTTP request to sharepoint" action as a get request with my NextLink variable as the Uri.



Here I parse the JSON body then use an Apply to each condition to push all items into my array


After this I use a condition to check the nextLink property from the items.


If its null i set my NextLink variable to be "nolink" (this is the the text i am checking for in the do until)


if it is set to a value I know I need to make another request with this new NextLink

I use a compse function to format this into the string that needs to go into the Send an HTTP request to SharePoint as it has to be just the rest call not the full link that the property provides, then set my NextLink



When the do until is complete I show the array to see that I have all the data, and I do which is great.


The overview of the flow if it helps looks like this



HOWEVER it is taking more than 10 minutes to run this flow, it takes seconds in js 




Am I doing something wrong or is this just a limitation of flow?

Community Support
Community Support

Re: Manipulating all SharePoint list data

Hi @Zango ,


If Flow run successfully, you could try to configure Settings in Apply to each to shorten the execution time.

Image reference:


Hope it helps.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Zango Advocate I
Advocate I

Re: Manipulating all SharePoint list data

Unfortunately this hasn't helped - with the parrallel option on and set to 50 it has upped the duration even more 😮



Helpful resources


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

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


Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (8,218)