get queue object name in apex code example Example: apex query queue select Id from Group where Type = 'Queue'