getting queue without query apex code example Example: apex query queue select Id from Group where Type = 'Queue'