Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest API pagination with Marker

Abhay_Yadav
New Contributor II
New Contributor II

Hi All,

We have a requirement to onboard a HR application Sage.

This application's API requires the "id"  value from the last item in the response.

Is there a way to implement this type of pagination in Saviynt rest connector.

Eg:

Below us First Page of response, we need to pass the "id" of the last item of this page in next page's url:  

 

Abhay_Yadav_1-1718294872335.png

Above id has to be passed in url of next page call "Marker":

{instanceURL}/services/apexrest/spapi/{version}/bonuses?marker={marker}

Regards,

Abhay Yadav

4 REPLIES 4

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @Abhay_Yadav 

Please refer to the REST connector's developer for supported ways of pagination.

Developers Handbook (saviyntcloud.com)

Regards,

Dhruv Sharma

NM
Honored Contributor II
Honored Contributor II

Hi @Abhay_Yadav , do we have field "lastitem" for the last response in the API? And which application?

Abhay_Yadav
New Contributor II
New Contributor II

Hi NM,

No, there is no last item field in the response. This is Sage hr application. This is the documentation.

https://developer.sage.com/people/reference/#tag/Employee/operation/employees

NM
Honored Contributor II
Honored Contributor II

Hi @Abhay_Yadav , I don't think so that is possible you have to do multiple calls to get the data.