Skip to content

Commit b711219

Browse files
authored
Merge pull request #304608 from TimShererWithAquent/us474076-29
Freshness Edit: Get more data, items, or records by using pagination in Azure Logic Apps
2 parents a116a5a + 8bc9f91 commit b711219

3 files changed

Lines changed: 59 additions & 68 deletions

File tree

Lines changed: 59 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,83 @@
11
---
2-
title: Get more items or records with pagination
3-
description: Set up pagination to exceed the default page size limit for connector actions in Azure Logic Apps.
2+
title: Exceed Page Size Limit for Items or Rows
3+
description: Learn to set up pagination so you can get items or rows beyond the default page size limit for connector actions in workflows for Azure Logic Apps.
44
services: logic-apps
55
ms.suite: integration
6-
ms.reviewer: estfan, azla
6+
ms.reviewers: estfan, azla
77
ms.topic: how-to
8-
ms.date: 01/04/2024
8+
ms.date: 10/06/2025
9+
#Customer intent: As an integration developer working with Azure Logic Apps workflows, I need to know how to set up pagination to get and manage large data results.
910
---
1011

11-
# Get more data, items, or records by using pagination in Azure Logic Apps
12-
13-
[!INCLUDE [logic-apps-sku-consumption](~/reusable-content/ce-skilling/azure/includes/logic-apps-sku-consumption.md)]
14-
15-
When you retrieve data, items, or records by using a connector action in
16-
[Azure Logic Apps](../logic-apps/logic-apps-overview.md), you might get
17-
result sets so large that the action doesn't return all the results at
18-
the same time. With some actions, the number of results might exceed the
19-
connector's default page size. In this case, the action returns only the
20-
first page of results. For example, the default page size for the SQL Server
21-
connector's **Get rows** action is 2048, but might vary based on other settings.
22-
23-
Some actions let you turn on a *pagination* setting so that your logic
24-
app can retrieve more results up to the pagination limit, but return those
25-
results as a single message when the action finishes. When you use pagination,
26-
you must specify a *threshold* value, which is the target number of results you
27-
want the action to return. The action retrieves results until reaching your
28-
specified threshold. When your total number of items is less than the specified
29-
threshold, the action retrieves all the results.
30-
31-
Turning on the pagination setting retrieves pages of results based on a connector's page size.
32-
This behavior means that sometimes, you might get more results than your specified threshold.
33-
For example, when using the SQL Server **Get rows** action, which supports pagination setting:
34-
35-
* The action's default page size is 2048 records per page.
36-
* Suppose you have 10,000 records and specify 5000 records as the minimum.
37-
* Pagination gets pages of records, so to get at least the specified minimum,
38-
the action returns 6144 records (3 pages x 2048 records), not 5000 records.
39-
40-
Here's a list with just some of the connectors where you
41-
can exceed the default page size for specific actions:
42-
43-
* [Azure Blob Storage](/connectors/azureblob/)
44-
* [Dynamics 365](/connectors/dynamicscrmonline/)
45-
* [Excel](/connectors/excel/)
46-
* [HTTP](../connectors/connectors-native-http.md)
47-
* [IBM DB2](/connectors/db2/)
48-
* [Microsoft Teams](/connectors/teams/)
49-
* [Oracle Database](/connectors/oracle/)
50-
* [Salesforce](/connectors/salesforce/)
51-
* [SharePoint](/connectors/sharepointonline/)
52-
* [SQL Server](/connectors/sql/)
12+
# Set up pagination to get more data than the page size limit in Azure Logic Apps
13+
14+
[!INCLUDE [logic-apps-sku-consumption-standard](../../includes/logic-apps-sku-consumption-standard.md)]
15+
16+
When you get data, items, or records by using a connector action in Azure Logic Apps, you might get result sets so large that the action doesn't return all the results at the same time. For example, the default page size for the SQL Server connector's **Get rows** action is 2048, but might vary based on other settings.
17+
18+
For some actions, the number of results might exceed the connector's default page size. In this case, the action returns only the first page of results.
19+
20+
Some actions let you turn on a *pagination* setting so that your logic app can retrieve more results up to the pagination limit. The action returns those results as a single message when the action finishes.
21+
22+
When you use pagination, you must specify a *threshold* value, which is the number of results you want the action to return. The action gets results until reaching your specified threshold. When your total number of items is less than the specified threshold, the action gets all the results.
23+
24+
Turning on the pagination setting retrieves pages of results based on a connector's page size. This behavior means that sometimes, you might get more results than your specified threshold. For example, when using the SQL Server **Get rows** action, which supports pagination setting:
25+
26+
- The action's default page size is 2048 records per page.
27+
- Suppose you have 10,000 records and specify 5000 records as the minimum.
28+
- Pagination gets pages of records, so to get at least the specified minimum, the action returns 6144 records (3 pages x 2048 records), not 5000 records.
29+
30+
Here's a list of some of the connectors where you can exceed the default page size for some actions:
31+
32+
- [Azure Blob Storage](/connectors/azureblob/)
33+
- [Dynamics 365](/connectors/dynamicscrmonline/)
34+
- [Excel](/connectors/excel/)
35+
- [HTTP](../connectors/connectors-native-http.md)
36+
- [IBM DB2](/connectors/db2/)
37+
- [Microsoft Teams](/connectors/teams/)
38+
- [Oracle Database](/connectors/oracle/)
39+
- [Salesforce](/connectors/salesforce/)
40+
- [SharePoint](/connectors/sharepointonline/)
41+
- [SQL Server](/connectors/sql/)
5342

5443
## Prerequisites
5544

56-
* An Azure subscription. If you don't have an Azure subscription yet,
57-
[sign up for a free Azure account](https://azure.microsoft.com/free/).
45+
- An Azure subscription. If you don't have an Azure subscription yet, [sign up for a free Azure account](https://azure.microsoft.com/free/).
46+
47+
- The logic app resource, workflow, and connector action where you want to turn on pagination.
5848

59-
* The logic app and the action where you want to turn on pagination. For more information, see [Create an example Consumption logic app workflow in multi-tenant Azure Logic Apps](quickstart-create-example-consumption-workflow.md).
49+
For more information, see the following articles:
50+
51+
- [Create a Consumption logic app workflow](quickstart-create-example-consumption-workflow.md)
52+
- [Create a Standard logic app workflow](create-single-tenant-workflows-azure-portal.md)
6053

6154
## Turn on pagination
6255

63-
To determine whether an action supports pagination in the workflow designer,
64-
check the action's settings for the **Pagination** setting. This example shows
65-
how to turn on pagination in the SQL Server's **Get rows** action.
56+
To determine whether an action supports pagination in the workflow designer, check the action's settings for the **Pagination** setting.
57+
58+
1. In the [Azure portal](https://portal.azure.com), open your logic app resource.
59+
60+
1. Based on the logic app type, follow the corresponding steps:
61+
62+
- Consumption: On the resource sidebar menu, under **Development Tools**, select the designer to open the workflow.
63+
64+
- Standard: On the resource sidebar menu, under **Workflows**, select **Workflows**. Select the workflow that you want to open the designer.
6665

67-
1. In the action's upper-right corner, choose the
68-
ellipses (**...**) button, and select **Settings**.
66+
1. On the designer, select the action. On the information pane that opens, select **Settings**.
6967

70-
![Open the action's settings](./media/logic-apps-exceed-default-page-size-with-pagination/sql-action-settings.png)
68+
If the action supports pagination, under **Networking**, the **Pagination** setting is available.
7169

72-
If the action supports pagination,
73-
the action shows the **Pagination** setting.
70+
1. Change the **Pagination** setting from **Off** to **On**.
7471

75-
1. Change the **Pagination** setting from **Off** to **On**.
76-
In the **Threshold** property, specify an integer value for
77-
the target number of results that you want the action to return.
72+
:::image type="content" source="./media/logic-apps-exceed-default-page-size-with-pagination/sql-action-settings-pagination.png" alt-text="Screenshot shows the action information pane with the Settings tab, Pagination set to On, and a Threshold value.":::
7873

79-
![Specify minimum number of results to return](./media/logic-apps-exceed-default-page-size-with-pagination/sql-action-settings-pagination.png)
74+
1. In the **Threshold** property, specify an integer value for the target number of results that you want the action to return.
8075

81-
1. When you're ready, choose **Done**.
76+
1. Save your workflow. On the designer toolbar, select **Save**.
8277

8378
## Workflow definition - pagination
8479

85-
When you turn on pagination for an action that supports this capability,
86-
your logic app's workflow definition includes the `"paginationPolicy"`
87-
property along with the `"minimumItemCount"` property in that action's
88-
`"runtimeConfiguration"` property, for example:
80+
When you turn on pagination for an action that supports this capability, your logic app's workflow definition includes the `"paginationPolicy"` property along with the `"minimumItemCount"` property in that action's `"runtimeConfiguration"` property, for example:
8981

9082
```json
9183
"actions": {
@@ -109,5 +101,4 @@ In this case, the response returns an array that contains JSON objects.
109101

110102
## Get support
111103

112-
For questions, visit the
113-
[Microsoft Q&A question page for Azure Logic Apps](/answers/topics/azure-logic-apps.html).
104+
- [Azure Logic Apps Q & A](/answers/topics/azure-logic-apps.html)
8.29 KB
Loading

0 commit comments

Comments
 (0)