Pagination on REST API - custom script step

miro2
Mega Sage

Hi folks,

I'm trying to find a way to get all records when I hit endpoint to retrieve data from third-party app. I'm using REST steps in Integration Hub.

Payload returns only the first 1000 entries and there is a skiptoken at the end. Below simple example.

 

{
  "d": {
    "results": [
      {}
    ],
    "__next": "https://apixxxxxxx$skiptoken=76JgbGF6dFJvdyI6pTAwMCg5kUmiUdd976rxKzDe41=="
  }
}

 


I can't use the Data stream action. I think the only way is to use a custom script step right before the REST step when I hit an endpoint and I'm getting the payload.
How to impalement this? Does anyone faced similar issue ?

0 REPLIES 0