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 offset pagination

iam01
Regular Contributor
Regular Contributor

offset  pagination is not working.

API request/response from Postman:

iam01_0-1694458719107.png

totalnumber in the above remains same for all the requests.

 

Saviynt REst connector:  Tried both the formats:

"pagination": {
"offset": {
"offsetParam": "$skip",
"batchParam": "$top",
"batchSize": 100,
"totalCountPath": "9999999999999999999"
}
}
=============================
"pagination": {
"offset": {
"offsetParam": "$skip",
"batchParam": "$top",
"batchSize": 100,
"totalCountPath": "meta.totalNumber"
}
}

4 REPLIES 4

adriencosson
Valued Contributor
Valued Contributor

Hi @iam01 ,

It seems you're missing the "completeResponseMap" to call the response in your "totalCount" parameter.

You may try the sample below and let us know if this helps you resolve the issue :

"totalCountPath":"completeResponseMap.meta.totalNumber"

Regards,
Adrien COSSON

iam01
Regular Contributor
Regular Contributor

@adriencosson  i will give a try, however it should work when I hardcode the totalcountpath to a number right?

Yes


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

iam01
Regular Contributor
Regular Contributor