Pagination in azure data factory using Rest API

Dervishi, Erald 66 Reputation points
2021-03-29T19:02:40.66+00:00

Hello, Team
I have a project scenario that requires me to use REST APIs with pagination, basically I have a resource REST API that I would like to get all the data from it and insert to a table in SQL Server, but the request it includes paging at the end, so basically when I do the request I get one part of the data, and at the end I have pagination as shown below, what I want is the whole data including the paging.

"Paging": {
"Next": "https://ustest60-services.dayforcehcm.com/Api/winn/V1/Reports/Report?cursor=7bCOeZDzU9MuYYaPMapyBnDk%252Ff33ZjHfeCu5bTTl2nGcA233yrTuSFjbKlW%252FjpCm";
}

How can I map in the sink part to retrieve the data from the "Next"

I would appreciate any hints or recommendations, also I can provide my pipeline id to check the runs if need it.

Looking forward for a response.
Thank You.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,535 questions
{count} votes

Accepted answer
  1. MartinJaffer-MSFT 26,026 Reputation points
    2021-03-30T20:52:57.047+00:00

    Hello @DervishiErald-7950 and welcome to Microsoft Q&A.

    In the Copy Activity, in the source, try adding an Additional Column to duplicate the paging if it is being removed.

    "MyPagingDuplicate" , "$$COLUMN" , "$.Paging.Next"

    82991-image.png

    Please let me know if this helps. I wasn't able to test against your website, but I was able to duplicate in another one.
    82972-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful