function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashish Agrawal 30Ashish Agrawal 30 

SOQL Query syntax for using scope queue

Hi,

I have created a Queue to filter my criteria for group of users and objects. I would like to use SOQL query to use the Queue group for my searches. The only syntax I found is "SELECT column_name FROM table_name USING SCOPE filterScope_value" where filterScope_value could be "Queue", but just replace filterScope_value with Queue does not work. I need to provide the Queue id in this query to search for particular queue name or id. I can not find syntax for such query any where. Can someone please help me provide the soql query using scope for type Queue. 

Thanks in advance.
Ashish
logontokartiklogontokartik
I am not sure if you can use QUEUE, maybe you can, but its not listed in the knowledge article

https://help.salesforce.com/apex/HTViewSolution?id=000204543&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000204543&language=en_US)
Ashish Agrawal 30Ashish Agrawal 30
You didnt read the question completely i guess, the queue syntax does not work like other scopes. 
RaghvendraRaghvendra
I guess filterScope_value can take one of the following enumeration values: Everything, Mine, My_Territory, My_Team_Territory or Team.