I’m trying to pull full adherence data for our WFM reports using the Genesys Cloud Analytics API. The pageCount in the response object is always returning 1, even when I set pageSize to 1000 and there are clearly thousands of records.
- Endpoint:
POST /api/v2/analytics/routing/activity/query - Query Params:
pageSize=1000,pageNumber=1 - Response JSON:
{"pageSize": 1000, "pageNumber": 1, "pageCount": 1, "totalSize": 5432}
I’m using the Node.js SDK analyticsApi.routingActivityQuery. The totalSize looks correct, but if pageCount is 1, how am I supposed to paginate through the rest of the data? The docs say to use pageCount for the loop limit, but that stops after the first page.