The CreatorCon Call for Content is officially open! Get started here.

how to paginate through rest api json response from scheduled script

redth
Giga Expert

Hi,

We have a integration from servicenow to third party system through rest api and each time we receive 250 records in one payload and there are 20,000 records on the other end. How do i paginate to get all the 20,000 records. 

In the payload, I receive these attributes - total (total number of records in third party system) and count (number of records sent in one payload).

6 REPLIES 6

prasannaposetty
Tera Expert

Hi @ersureshbe  We're using Outbound REST API's, and 3rd party response has pagination setup. How do I loop thru it?