PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

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