1

If I update case assignment rules are there any locking or differences such as query delays that I should consider?

The documentation does not specifically list update assignment rule considerations in regards to performance.

1
  • Case assignment rules run synchronously within the DML transaction where they are "triggered" (e.g. Case insert/update where the DmlOptions header to run assignment rules) is set. This header is automatically set, for example, in Email-to-Case or Web-to-Case. See Triggers and Order of Execution Step 8
  • When the assignment rules run, they update the Case with a new Ownerid. This is a DML operation. Triggers will re-execute, if any, on the Case object

If there is any contention, it would be from other transactions on the Case object running concurrently that, perhaps are locking a common resource such as a parent Account or Contact. There is nothing per se special about assignment rules versus workflow field updates or Process Builder record updates

4
  • Thanks for the information. So there is no recalculation time or any consideration along those lines that would need to be considered for updating a case assignment rule during business hours?
    – S.B.
    Dec 18 '19 at 20:28
  • 1
    If you update a case assignment rule; the new rule takes effect on the very next transaction that needs to run assignment rules. Assignment rules don't run in the background
    – cropredy
    Dec 18 '19 at 20:32
  • Thanks, I was concerned about some sort of similar recalculation performance degradation that I have seen in updating sharing rules.
    – S.B.
    Dec 18 '19 at 20:37
  • yep - sharing rules run in background as does recalculating Roll up summaries, Shield encryption, ... but not assignment rules or auto-response rules or escalation rules
    – cropredy
    Dec 18 '19 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.