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
sapsap 

Error using AssignmentRuleHeader in Apex Class

Hi,
 
Im tring to create a case in an apex class. I want to force the case assignment rules to work.
 
So tried using AssignmentRuleHeader which can be used to for this prupose,but getting an error saying invalid type.
 
Is it possible to force assignment rules to trigger in apex code.
 
Can any one please suggest me any work around or alternative for this.
 
Any pointers will be of great help.
 
Thanks in advance.
zigzagzigzag
I have the same problem: When create a Case object in Apex code (in a trigger or a class), how do I make sure the Assignment Rules run?

Surely someone knows this? :)

Thanks