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
geetforcegeetforce 

Identify "Assign using active assignment rules' checkbox value in Apex

Hi, On Case creation page, we have on checkbox (at bottom) called 'Assign using active assignment rules'. My requirement is, I have to perform some extra work if User select this checkbox. So is there any way in Trigger/ Apex where we can fetch the value of this checkbox. I guess we don't have any field in Case object and also tried with some code, but I am getting null value in 'opts.AssignmentRuleHeader' field. Case c = Trigger.new[0]; Database.Dmloptions opts = c.getOptions(); System.debug('!@# ' + opts); Thanks in advnace.
lopezclopezc

I have same requirements in the object Lead. 

 

DId you find the solution?