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
prufrockprufrock 

Invoking Lead Assignment Rule From Apex Code

Hello,
I am working on a requirement where I need to call Lead Assignment Rule from a trigger. I was just wondering if anybody ever tried to invoke Lead Assignment rule from Apex Code.
 
Your response is greatly appreciated.
Regards.
paul-lmipaul-lmi
The canned response is that you can only call a rule via the API, not Apex code itself.  I need to do the same thing with cases, so I'd love to do so.  Please reply if you find it actually is possible.
TehNrdTehNrd
http://ideas.salesforce.com/article/show/10094219/Invoke_Assignment_Rules_with_Apex#skin=le
AmulAmul