We’re building a custom queue analytics dashboard and need to pull queue lists from every division in the org. The admin UI handles this trivially with the global search filter. The JavaScript SDK is stuck on the default division scope though.
Passing divisionId: 'all' returns a 400 Bad Request.
const response = await queuesApi.getQueuesQueues({
pageSize: 25,
divisionId: 'all'
});
Tried omitting the parameter entirely. Response just defaults to the OAuth client’s home division. We need every queue ID for the analytics aggregation. Documentation mentions divisionFilter: INCLUDE but that’s for outbound campaign entities, not routing queues.
Iterating through divisions manually feels inefficient. The token has full org access scope. Checked the network tab. The underlying REST call is hitting /api/v2/queues/queues. Tried adding divisionFilter: INCLUDE to the request body, which throws a validation error. The SDK types don’t expose a divisionFilter property for this method anyway. We’ve confirmed the OAuth client permissions are set to org-level. It’s only pulling the local division data. Maybe the SDK wrapper is stripping the query params. Looking at the raw HTTP request logs.