JS SDK queue pagination stuck on single division

Trying to fetch all queues across our hybrid setup. The JS SDK getQueues call only returns results for the current user’s division. I’ve tried passing divisionId in the query params, but it just filters down instead of expanding scope. Even with admin scopes, the nextPageLink stops after the first division’s data. Is there a way to iterate through all divisions grammatically or am I missing a specific SDK parameter? Here’s the snippet I’m using:

Docs state: “The API does not support cross-division pagination.” You’re stuck fetching divisions first, then looping through each ID with getQueues. No magic param fixes this.

’s right, the API just doesn’t do cross-division pagination. You have to fetch the division list first, then loop through each ID to get the queues.

const divisions = await platformClient.OrganizationApi.getDivisions();
const allQueues = [];
for (const div of divisions.entities) {
 const queues = await platformClient.QueueApi.getQueues({ divisionId: div.id });
 allQueues.push(...queues.entities);
}