Pagination in rest api url
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2024 03:52 AM
Hi Team,
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