• User Migration 6
  • NEWBIE
  • 10 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,

do you have any trigger to force Case Assignment Rule to run when a User edit with inline editing?
I know that there are some ideas to correct this and the only workaround is to use a trigger.

I'm using this code but is not triggering any Rule:
 
trigger CaseAssignmentTrigger on Case (before update) {
  
  for (Case theCase:trigger.new) {
      Database.DMLOptions dmo = new Database.DMLOptions();
      dmo.assignmentRuleHeader.useDefaultRule = true;
      theCase.setOptions(dmo);
      
      System.debug ('working');
  }
    
        
}



Thank you.
Hello,

do you have any trigger to force Case Assignment Rule to run when a User edit with inline editing?
I know that there are some ideas to correct this and the only workaround is to use a trigger.

I'm using this code but is not triggering any Rule:
 
trigger CaseAssignmentTrigger on Case (before update) {
  
  for (Case theCase:trigger.new) {
      Database.DMLOptions dmo = new Database.DMLOptions();
      dmo.assignmentRuleHeader.useDefaultRule = true;
      theCase.setOptions(dmo);
      
      System.debug ('working');
  }
    
        
}



Thank you.