Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

DATA Source REST API: How to call pagination wise records through REST API

SN Emy
Tera Guru

Hey,

I am trying to retrieve all records for a Paginated API using the REST Data source type and the integration works fine and returns the first 500 items (off 780). However, I am not sure how to gain all the records from each page without defining a new REST call for each one? PAYLOAD --- {"category":"server-hardware","count":500,.....,"start":0,"total":784,"prevPageUri":null,"nextPageUri":"/rest/server-hardware?count=500&start=0500&sort=name:asc"

SNEmy_0-1678658429515.png

 

Thanks,

3 REPLIES 3

Community Alums
Not applicable

I am using a data source with flow design. 

Thanks,

 

Community Alums
Not applicable

Got it,

I tested with this KB article last December and it worked fine for us (but for data stream) - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0756552 .

As of data source - here is another KB - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0952044