Why is the Platform SDK for JS ignoring my division filter? I need to pull every queue across all our divisions, but the getRoutingQueues method seems locked to the default scope. I’ve tried passing divisionId: null and even an empty string, thinking that might trigger a global search, but it just returns the queues from our main division. Here’s the call:
const client = PlatformClient.ApiClient.instance;
const Api = new client.Api();
Api.getRoutingQueues({
divisionId: null,
pageSize: 250
}).then((result) => {
console.log(result.body.entities.length); // Always just the default div count
});
The API docs for /api/v2//queues mention a divisionId parameter, but there’s no obvious way to request “all divisions” in one go. Do I have to fetch every division ID first and then loop through getRoutingQueues for each one? That feels like a terrible way to handle it. Am I missing a specific flag or header?