Web Service:
WebService connector supports pagination for Account Aggregation and Group Aggregation.
There are two ways to implement pagination for WebService connector:
1. Paging Tab
2. Before Rule (OR) After Rule
Ex 1: fullUrl = https://mightypedia.com/xyz/api/employee?pageIndex=1
Json Response:
{
"totalcount": 666,
"pageSize": 100,
"pageIndex":1,
"startAt":1,
"records":[
{
.......
.......
.......
}
]
}
Paging Tab:
TERMINATE_IF $response.startAt == 0
$offset$ = $response.pageIndex$ + 1
$endpoint.fullUrl$ = $application.baseUrl$ + $endpoint.relativeUrl$ + ?pageIndex=+ $offset$