get queue id in apex without soql code example Example: apex query queue select Id from Group where Type = 'Queue'