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 Connector - applying pagination using PageWithHttpParamsAndHeaders

MeghaSanjanaR
New Contributor
New Contributor

Hello,

I am trying to do an account import which returns only 100 records at a time. To get the next set of records(page 2), I will have to pass "startRecord":101 in the headers. How do I achieve this dynamically using PageWithHttpParamsAndHeaders in the json?

I tried "offset" and "nextUrl" types but these types will append parameters to the URL which is not what I'm looking for.

MeghaSanjanaR_2-1695278308443.png

 

The below json needs to be corrected -

"pagination": {
"PageWithHttpParamsAndHeaders": {
"pageSizeParam": "startRecord",
"pageSize": 100,
"firstPageNumber": 1,
"pageRecordCount": "objectList",
"totalCountPath": "headers.x-totalCount",
"paginationLocation": "httpHeaders"
}

1 REPLY 1

sudeshjaiswal
Saviynt Employee
Saviynt Employee

Hello @MeghaSanjanaR,

Passing the pagination parameter in the header is currently not supported.
But this improvement is in the roadmap.

Thanks,

If you find the above response useful, Kindly Mark it as "Accept As Solution".