Skip to content

Commit b1c20d9

Browse files
authored
Merge pull request #184970 from Clare-Zheng82/0113-Add_pagination_rules_examples
Add pagination rule examples to REST connector doc
2 parents d4ff3d6 + fd41bbc commit b1c20d9

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

articles/data-factory/connector-rest.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: data-factory
77
ms.subservice: data-movement
88
ms.custom: synapse
99
ms.topic: conceptual
10-
ms.date: 11/11/2021
10+
ms.date: 01/13/2022
1111
ms.author: makromer
1212
---
1313

@@ -568,6 +568,48 @@ The corresponding REST copy activity source configuration especially the `pagina
568568
}
569569
```
570570

571+
**Example: Pagination rules**
572+
573+
If you want to send multiple sequence requests with one variable in a range, you can define a variable such as `{offset}`, `{id}` in AbsoluteUrl, Headers, QueryParameters, and define the range rule in pagination rules. See the following examples of pagination rules:
574+
575+
- **Example 1**
576+
577+
You have multiple requests:
578+
579+
```
580+
baseUrl/api/now/table/incident?sysparm_limit=1000&sysparm_offset=0,
581+
582+
baseUrl/api/now/table/incident?sysparm_limit=1000&sysparm_offset=1000,
583+
584+
......
585+
586+
baseUrl/api/now/table/incident?sysparm_limit=1000&sysparm_offset=10000
587+
```
588+
You need to specify the range pagination:
589+
590+
`AbosoluteUrl = baseUrl/api/now/table/incident?sysparm_limit=1000&sysparm_offset={offset}`
591+
592+
The pagination rule is: `QueryParameter.{offset} = RANGE:0:10000:1000`
593+
594+
- **Example 2**
595+
596+
You have multiple requests:
597+
598+
```
599+
baseUrl/api/now/table/t1
600+
601+
baseUrl/api/now/table/t2
602+
603+
......
604+
605+
baseUrl/api/now/table/t100
606+
```
607+
You need to specify the range pagination:
608+
609+
`AbosoluteUrl = baseUrl/api/now/table/t{id}`
610+
611+
The pagination rule is: `AbsoluteUrl.{id} = RANGE:1:100:1`
612+
571613
## Use OAuth
572614
This section describes how to use a solution template to copy data from REST connector into Azure Data Lake Storage in JSON format using OAuth.
573615

0 commit comments

Comments
 (0)