Hi all,
We are migrating WFM schedule exports to a Terraform data source to automate reporting. The process works for single-agent queries but fails on bulk exports.
Environment:
- Genesys Cloud WFM API v2
- Terraform v1.7.5
- Custom provider: genesys-cloud/wfm v1.2.0
- Region: ap-southeast-2
We use a GET request to /api/v2/wfm/schedules/export with a JSON body containing a list of agent IDs. The payload is under 100 agents.
Request body snippet:
{
"agentIds": ["uuid-1", "uuid-2", ...],
"startDate": "2023-10-01T00:00:00.000Z",
"endDate": "2023-10-07T23:59:59.999Z"
}
Error Response:
{
"code": 400,
"message": "Invalid schedule export criteria. Agent count exceeds dynamic limit for this tenant.",
"status": "Bad Request"
}
We have verified the agent IDs exist and are active. The same request works in Postman with fewer agents (e.g., 10 IDs). Increasing the count to 50 triggers the 400 error.
Is there a documented limit for bulk schedule exports that differs from the documentation? We see no rate-limit headers in the response. Also, is there a pagination strategy recommended for Terraform data sources that do not support async callbacks?
Any insights on handling this constraint in code would be appreciated.