Azure ADF - Copy Activity - Next page url issue

Sreenivas Angara 0 Reputation points
2023-10-09T21:41:40.0033333+00:00

Hello,

Please help with this issue.

I am trying to implement pagination in Copy Activity.

The response has the following data

    "meta": {
        "success": true,
        "pagination": {
            "per_page": 120,
            "next_page_uri": "/api/v2/activity_logs.json?apaKxevTVh19A=Mg%3D%3D%0A&min_last_activity_at=%222023-10-09T013%3A48%3A00%22&per_page=120&search%5Bfeature_type%5D%5B%5D=appointment&search%5Bfeature_type%5D%5B%5D=messenger&search%5Bfeature_type%5D%5B%5D=outreach"
        }
    }

Meta is part of the Body of the JSON response

Copy Activity, under source -> Pagination Rules, I am trying to build this expression, so that I can build the Absolute Url. Please provide guidance, on how I can build the absolute url, using relative url from the response message.

User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
    2023-10-10T08:59:53.75+00:00

    Hi

    Thank you for posting query in Microsoft Q&A Platform.

    You need to consider having variables in Absolute URL and then pass values to that variables from Pagination rules.

    Below is the link of official documentation which explains how to do that.

    https://learn.microsoft.com/en-us/azure/data-factory/connector-rest?tabs=data-factory#example-2variables-in-absoluteurl

    In your above screenshot, you are not using any variable in the Absolute URL part under pagination. I believe you might have created variables for Absolute URL as part of linked service and dataset. Kindly recheck from above link.

    Hope this helps. Please try same and let me know how it goes.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.