query queues belonging to a particular sobject
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
Is there a way to query only queues tied to a particular sobject?
I have the following query which gets me all the queues.
Select id, name from group where Type = 'Queue'
I want all queues which are tied only to sobject : CustomObject__C. How can I modify the above query or is there a better approach?
query queue
add a comment |Â
up vote
1
down vote
favorite
Is there a way to query only queues tied to a particular sobject?
I have the following query which gets me all the queues.
Select id, name from group where Type = 'Queue'
I want all queues which are tied only to sobject : CustomObject__C. How can I modify the above query or is there a better approach?
query queue
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is there a way to query only queues tied to a particular sobject?
I have the following query which gets me all the queues.
Select id, name from group where Type = 'Queue'
I want all queues which are tied only to sobject : CustomObject__C. How can I modify the above query or is there a better approach?
query queue
Is there a way to query only queues tied to a particular sobject?
I have the following query which gets me all the queues.
Select id, name from group where Type = 'Queue'
I want all queues which are tied only to sobject : CustomObject__C. How can I modify the above query or is there a better approach?
query queue
query queue
asked 2 hours ago
pranav prashant
150215
150215
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
there is a QueueSobject from which you will get the queues along with the object assigned to it.
Please check below query-SELECT QueueId, Queue.Name, SobjectType FROM QueueSobject WHERE SobjectType = 'CustomObject__C'
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
You can use QueueSobject for this. QueueSobject
represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
Sample query:
QueueSobject que = [Select Id, SobjectType, QueueId, Queue.Name from
QueueSobject where SobjectType = 'Case'];
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
there is a QueueSobject from which you will get the queues along with the object assigned to it.
Please check below query-SELECT QueueId, Queue.Name, SobjectType FROM QueueSobject WHERE SobjectType = 'CustomObject__C'
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
accepted
there is a QueueSobject from which you will get the queues along with the object assigned to it.
Please check below query-SELECT QueueId, Queue.Name, SobjectType FROM QueueSobject WHERE SobjectType = 'CustomObject__C'
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
there is a QueueSobject from which you will get the queues along with the object assigned to it.
Please check below query-SELECT QueueId, Queue.Name, SobjectType FROM QueueSobject WHERE SobjectType = 'CustomObject__C'
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
there is a QueueSobject from which you will get the queues along with the object assigned to it.
Please check below query-SELECT QueueId, Queue.Name, SobjectType FROM QueueSobject WHERE SobjectType = 'CustomObject__C'
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 2 hours ago


pranaya bhoyar
762
762
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
pranaya bhoyar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
up vote
3
down vote
You can use QueueSobject for this. QueueSobject
represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
Sample query:
QueueSobject que = [Select Id, SobjectType, QueueId, Queue.Name from
QueueSobject where SobjectType = 'Case'];
add a comment |Â
up vote
3
down vote
You can use QueueSobject for this. QueueSobject
represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
Sample query:
QueueSobject que = [Select Id, SobjectType, QueueId, Queue.Name from
QueueSobject where SobjectType = 'Case'];
add a comment |Â
up vote
3
down vote
up vote
3
down vote
You can use QueueSobject for this. QueueSobject
represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
Sample query:
QueueSobject que = [Select Id, SobjectType, QueueId, Queue.Name from
QueueSobject where SobjectType = 'Case'];
You can use QueueSobject for this. QueueSobject
represents the mapping between a queue Group and the sObject types associated with the queue, including custom objects.
Sample query:
QueueSobject que = [Select Id, SobjectType, QueueId, Queue.Name from
QueueSobject where SobjectType = 'Case'];
answered 2 hours ago
Pragati Jain
72048
72048
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f236295%2fquery-queues-belonging-to-a-particular-sobject%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password