Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to do pagination Outbound REST Api

Arun_Manoj
Mega Sage

Hi ,

 

I want to do pagination in outbound REST api given URL have no off set Limit , just get URL,

 

Outbound REST Message pass token , authentication, api,user id and end point.

in script inclued all the Rest message, How to do pagination where I 've to update?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Arun_Manoj 

if 3rd party supports pagination, off set etc then check with them how you should consume

what should the sample request and endpoint be so that pagination works for you.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar  In the end point API , how to pass the pagination.

as per the given endpoint there is no pagination in the outbound rest message and using script include calling the GET function.

Issue is only some record around 10 only showing without pagination. there more data are there from the REST api message ,Due to the pagination showing limited number of record.

@Arun_Manoj 

that's what I am saying.

You need to check with the 3rd party team if their endpoint supports pagination and offset, if yes then how it should be done

they will give you the sample endpoint including pagination, offset if they support.

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Arun_Manoj 

check these links

Data Stream actions and pagination 

Using Data Stream Action to ingest large datasets into ServiceNow -> hands-on details

ServiceNow Datastream Helps Conquer Data Challenges Like Never Before! 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader