+ Start a Discussion
jeffdonthemicjeffdonthemic 

Querying for Lead Queues?

I'm trying to create a Visualforce page that allows a user to choose a Lead Queue form a picklist. I see the QueueSobject object but it appears to only contain the SobjectType and QueueId; not the Queue Name. Any idea how I can get both the Queue's Id and Name?

 

Thanks

 

Jeff Douglas
Informa Plc
http://blog.jeffdouglas.com

Best Answer chosen by Admin (Salesforce Developers) 
Joseph FerraroJoseph Ferraro

Select q.Queue.Name, q.QueueId From QueueSobject q

All Answers

Joseph FerraroJoseph Ferraro

Select q.Queue.Name, q.QueueId From QueueSobject q

This was selected as the best answer
jeffdonthemicjeffdonthemic

Thanks Joe! That was so plainly obviously that I feel stupid. I didn't even see that QueueId was a reference. That's what I get from listening to Premier Support telling me they didn't know how to do it.

 

Thanks

Jeff