Pagination in rest api url

p t1
Kilo Sage
Kilo Sage

Hi Team,

@Ankur Bawiskar 

We are calling external application to get the data into ServiceNow and we are getting 30,000+ records and we are using data source script to get the data.

In the rest API call we are using pagenumber=1 parameter(totalpages=1) and it is returning 10,000 data at once. and if totalpages >1 then we are using pagenumber=2 parameter in static way.

 

But as we are getting more meanswe are getting 30,000+ records (totalpages is 3) how to do it in a dynamic way.

 

Thanks,

 

 

0 REPLIES 0