I have searched the internet but cant find out how to delete more than 1000 rows in a sharepontlist with flow.
I do read about a limitation of 5000 rows and a certain amount of API calls but in my case flow only deletes 1000 rows and then stops working.
This is the flow with an Odata filter :
a) how can i prevent the flow to stop after 1000 rows.
b) the list can be far more than 5000 rows after a month, is this the best way to store data or should i try an other solution like Dataverse? I have an E5 license.
Solved! Go to Solution.
Hi @Yvonzim
You can use the pagination method to retrieve more than 5000 records. There are lots of articles already exists so I don't want to explain more on this.
Please have a look at the below links.
Get more than 5000 items from SharePoint with Power Automate (tachytelic.net)
https://alextofan.com/2019/08/22/how-to-get-more-than-5000-item-from-sharepoint-online-in-flow/
Not sure why it stopping after 1000 rows. What error are you getting? If you run again what happens?
Try to implement the pagination method and see whether that resolves or not.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogI suspect the problem is that your Get Items action is only returning 1,000 rows, and therefore the delete action only delete's 1,000 rows.
This method will be very slow. I did a video and blog post about how to delete items quickly using only a single action. Check it out and see if it works for you:
https://www.tachytelic.net/2021/06/power-automate-delete-sharepoint-items/
Blog: tachytelic.net
YouTube: https://www.youtube.com/c/PaulieM/videos
If I answered your question, please accept it as a solution 😘
Hi @Yvonzim
You can use the pagination method to retrieve more than 5000 records. There are lots of articles already exists so I don't want to explain more on this.
Please have a look at the below links.
Get more than 5000 items from SharePoint with Power Automate (tachytelic.net)
https://alextofan.com/2019/08/22/how-to-get-more-than-5000-item-from-sharepoint-online-in-flow/
Not sure why it stopping after 1000 rows. What error are you getting? If you run again what happens?
Try to implement the pagination method and see whether that resolves or not.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog@Yvonzim by the way your filter query is wrong, it should be lt not gt if you are deleting items older than 90 days.
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
Tnx for the correction, weird thing it does delete the right rows untill now, but i will keep this in mind if something goes wrong.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
26 | |
25 | |
23 | |
23 | |
21 |
User | Count |
---|---|
61 | |
42 | |
40 | |
29 | |
24 |