Can I query Salesforce Queue and can I do it using the metadata or tooling APIs? Looking to quickly access this data from Salesforce inspector, also looking to see if there is a way to check if a queue triggered an email, not using email logs...


You can query queues with a normal SOQL call, no metadata/tooling API necessary. The objects related to queues are actually Group and GroupMember.

Queues do not generate emails, users do, so there's no way to specifically check if an email came from a queue (e.g. because a record was placed in the queue).

The queue query would look like this:

SELECT Id, Name FROM Group WHERE Type = 'Queue'
|improve this answer|||||
  • Got it, that is what I had come across as well -- just wanted to make sure I wasn't missing anything. – GedAWizardofEarthSea Jan 18 '19 at 0:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.