and more in a single search tool across platforms. Read the announcement here. |
03/06/2024 02:54 AM
Hi,
I've tried multiple ways of setting up the pagination but haven't been able to successfully get the required results. Only the first page is read. Can you please assist on how can read all the pages through NextURL?
"pagination": { "nextUrl": { "nextUrlPath": "${response?.completeResponseMap?.get('page.totalPages')>1?null:https://URL/rest/v1/roles?cursor='+response.completeResponseMap.page.number}" } } |
This is the outcome of the API. I see there are 4 links + the output also has, under page, the current page and number of pages.
03/08/2024 04:19 AM - edited 03/11/2024 02:30 AM
Hello @nikhil,
You may try this,
"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.done==true?null:'base URL'+response.completeResponseMap.nextRecordsUrl}"
}
}
or
"pagination": {
"nextUrl": {
"nextUrlPath": "nextUrlPath": "${response?.completeResponseMap?.links[2].href==null?null:'+response?.completeResponseMap?.links[2].href+'}"
}
Thanks.
03/10/2024 07:31 PM
Refer https://forums.saviynt.com/t5/identity-governance/pagination-nextrecordsurl/m-p/74841#M47534