# Write a SOQL query to fetch all Queues in the org that support the Case object (QueueSobject where SobjectType = 'Case').

**Topic:** Development · **Difficulty:** Easy · **Asked at:** Cognizant, Capgemini, Wipro · **Tags:** soql, scenario, queues, setup-objects

Read it on the site: https://www.forcechallenges.com/interview-questions/write-a-soql-query-to-fetch-all-queues-in-the-org-that-support-the-case-object-queuesobject-where-sobjecttype

## Answer

`QueueSobject` links Queues (Group records of Type Queue) to the objects they support. Filter by `SobjectType` and read the queue through `Queue`.

```soql
SELECT QueueId, Queue.Name, Queue.DeveloperName FROM QueueSobject WHERE SobjectType = 'Case'
```

---
Source: ForceChallenges · last updated 2026-10-19
