Yes, Looks pretty standard. I have observed that the configured paging steps are not considered at all. Even if I mistyped the url in the paging steps, the aggregation still runs returning just 20 records
Page size is the response limit or the maximum number of records you can fetch per page. This will be fixed value so you canβt compare this with the total records that are present in your system. Therefore, you need to compare this with offset because for every API call you are incrementing the offset until it fetches the last record in the system.
That $response.count$ is the total number of records present in the application, and you are getting that value in your API response, so we have used that for our comparison to fetch all the records until the offset is more than your response count.
Thanks for the clarification. I was asking for $RECORDS_COUNT$.
This standard variable is used in the documentation and it would represent the number of records fetched in the current request.
The issue with my config was that in the context url of the operation I didnt mentioned the offset and pagesize. Therefore it was returning 20 records as default for the first request. As 20 < pagesize or offset, it would terminate.
Fixing the context url to fetch the first page passing the pagesize and offset would guarantee returning 100 records as per pageSize. Then the comparision of $RECORDS_COUNT$ < pagesize would make sense.