Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/09/2024 02:45 PM
I am trying to return analytics details using fetchControlDetailsES with over 500 rows, but it appears to be limited to 500. I have found various forum posts also stating this. One says to use pagination, but it does not seem to work for me. It then limits the display to 50. These are the posts I was looking at, but they don't seem to have the full answer.
This is what I tried to add to the body:
"pagination": {
"offset": {
"offsetParam": "offset",
"batchParam": "max",
"batchSize": 500
How can I add pagination to Fetch Runtime Controls... - Saviynt Forums - 89267
How can I run Fetch Runtime Controls Data V2 API t... - Saviynt Forums - 42032
Solved: Re: SAV4SAV REST - Account Import Through Analytic... - Saviynt Forums - 63159
Thanks!
09/09/2024 03:12 PM - edited 09/09/2024 08:07 PM
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.count<50?null:'https://domain.saviyntcloud.com/ECM/api/v5/user?sort=userkey&fields=username,email,displayname&max=50&offset='+Math.addExact(Integer.parseInt(response.completeResponseMap.offset),50)}"
}
}
09/09/2024 04:37 PM
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.count<50?null:'https://XXXXXXX.saviyntcloud.com/ECM/api/v5/user?sort=userkey&fields=username,email,displayname&max=50&offset='+Math.addExact(Integer.parseInt(response.completeResponseMap.offset),50)}"
}
}
09/13/2024 10:27 AM
It is only returning 50 now, even though I have the max=500 in the URL. And on subsequent requests, it is still returning the same data instead of the next page...
09/13/2024 10:40 AM
@yodeler
try these as well
"pagination": {
"offset": {
"offsetParam": "pageStartIndex",
"batchParam": "pageSize",
"batchSize": 1000,
"totalCountPath": "completeResponseMap.totalItems"
}
}
OR
"pagination": {
"offset": {
"offsetParam": "pageStartIndex",
"batchParam": "pageSize",
"batchSize": 1000,
"totalCountPath": "completeResponseMap.totalItems"
}
}
09/13/2024 11:32 AM
Please share logs