rest connector offset pagination

iam01
New Contributor III
New Contributor III

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
Regular Contributor III
Regular Contributor III

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
New Contributor III
New Contributor III

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

iam01
New Contributor III
New Contributor III