Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Pagination nextRecordsUrl

BT
Regular Contributor
Regular Contributor

My API Json response contains below details 

---------------

{"totalSize":1454808,
"done":false,
"nextRecordsUrl":"/services/data/v59.0/query/xxx-2000",
"records":[
{
"attributes":

------------------

Since my nextRecordsUrl is missing on the base URL how do i adjust my pagination?

 

"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.done==true?null:response.completeResponseMap.nextRecordsUrl}"
}
}

--------

Is below correct? 

"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.done==true?null:'base URL'+response.completeResponseMap.nextRecordsUrl}" 

}

 

2 REPLIES 2

NM
Regular Contributor III
Regular Contributor III

Hi,

This should work fine.

"pagination": {
"nextUrl": {
"nextUrlPath": "${response?.completeResponseMap?.done==true?null:'base URL'+response.completeResponseMap.nextRecordsUrl}" 

}

BT
Regular Contributor
Regular Contributor

Thank you @NM