Power Automate Pagination: How to Retrieve More Than 5000 Items from a SharePoint List
One of the common scenarios that you may encounter when using Power Automate is to retrieve data from a SharePoint list and perform some actions on it. However, if your SharePoint list has more than 5000 items, you may run into some challenges and limitations. In this blog, we will explain why this happens and how to overcome it using pagination. Why does Power Automate have a limit of 5000 items for SharePoint lists? The reason why Power Automate has a limit of 5000 items for SharePoint lists is because of the underlying SharePoint API that Power Automate uses to connect to SharePoint. SharePoint has a feature called list view threshold, which limits the number of items that can be returned in a single query to 5000 by default. This is to prevent performance issues and ensure optimal performance for all users. If you try to query more than 5000 items from a SharePoint list, you will get an error message like this: This error message will also appear in Power Automate if you use the Ge