Want to get recursively nextPage value from response body in Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 04:59 AM
Hi All/ @Sandeep Rajput ,
We have one integration requirement where 3rd party side has 75K records, that we want to pull in ServiceNow table.
we are not ensuring that 75k records are ServiceNow side getting or not.
In endpoint URL we are passing page size = 5000 & we are recursively call in NextPage value whatever getting from reponsebody.
Code :
We only getting nextPage record one not more. We have to get entire nextPage value during one execution.
Please provide any suggestions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 12:13 PM
@abirakundu23 Check with your API team on if there is a way to pass the page index to fetch the records available on next page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 09:49 PM
Hi @Sandeep Rajput ,
After first execution of schedule job getting next page URL value in response body & they suggested we have to pass this next page value through endpoint & again execute then only we can get next page records. We want to achieve this action using script, so is it achievable?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2024 01:24 AM
@abirakundu23 Yes, you can put the index value in a global/session variable and use it while making the API call.