02/21/2023 07:56 PM
Hi ,
We have REST Connector - implementing account import pagination logic, but its not pulling second page.
"pagination": {
"nextUrl": {
"nextUrlPath": "${(response?.completeResponseMap?.numberOfElements < response?.completeResponseMap?.size)?null:'https://xxxxxxx?size=20&page='response?.completeResponseMap?.page + 1}"
}
},
any inputs on the above syntax?
Solved! Go to Solution.
02/21/2023 11:33 PM
Hi @IAM_99
Please configure the page type pagination to handle the above scenario. Refer to the REST connector guide, which has a sample and details on each parameter.
Thank you
Vedanth B.K
02/22/2023 04:05 PM
use below as your pagination block and remove
"pagination": {
"page": {
"pageSizeParam": "size",
"pageSize": 20,
"pageRecordCount": "completeResponseMap.numberofElements",
"pageNumberParam": "page",
"totalCountPath": "completeResponseMap.totalElements",
"firstPageNumber": 1
}
}