function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Subhan PothakamuriSubhan Pothakamuri 

SOQL Query to get the users who are assigned to a assignment rule

Hi All,

I have a question regarding assignment rules in salesforce. I have a set of users who are assigned to a particular assignment rule in lead object level. Is there any way to get those list of users through SOQL query.

I checked through IDE and I didn't get any direct relationship between the object.
below query which tells me about how many assignment rules we have in the system, 

Select a.SystemModstamp, a.SobjectType, a.Name, a.LastModifiedDate, a.LastModifiedById, a.Id, a.CreatedDate, a.CreatedById, a.Active From AssignmentRule a

Any idea on my request question please.

 
Best Answer chosen by Subhan Pothakamuri
Ch. Szandor KnappCh. Szandor Knapp
No.

All Answers

Ch. Szandor KnappCh. Szandor Knapp

Hello,

the information you are looking for is stored as metadata 'RuleEntry'.Cf: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_assignmentrule.htm

 You will need to use Metadata / Tooling API to access this information programmatically. 

have great day!

Sz

Subhan PothakamuriSubhan Pothakamuri
Thanks for your reply. so I already checked that option. but do we have any way to acheive it through SOQL query
Ch. Szandor KnappCh. Szandor Knapp
No.
This was selected as the best answer