Loading

Case Assignment Rules run multiple times during Email-to-Case when no field update from a child record sets the Case

Udgivelsesdato: Nov 3, 2026
Beskrivelse

For on-demand Email-to-Case, when the routing address has no Case Owner, Salesforce forces auto-assignment on every save of the Case. As a result, Case assignment rules can run more than once in a single Email-to-Case transaction, which changes the Case Owner repeatedly, for example between a queue and an agent. The Case can end up with the queue that the assignment rule matches.


The only thing that stops this is a cross-object field update from a child record to its parent Case, such as a workflow rule on EmailMessage that updates a field on the Case. Salesforce turns off auto-assignment for the Case saves that follow it, so that Cases are not re-assigned every time an EmailMessage updates them via workflow.


This is why behavior can differ between routing addresses in the same org. Where an auto-response email is sent and the EmailMessage workflow rule updates the Case, assignment runs once. Where no auto-response is sent, nothing suppresses assignment, so it runs again on each Case save. The behavior can also start when an EmailMessage workflow rule is replaced by an Apex trigger or Flow, because those do not suppress assignment in the same way.

Løsning

1. Review the working and affected Email-to-Case transactions to confirm whether the assignment rule runs only once at Case creation or is re-invoked on subsequent Case saves. Specifically verify whether the working path includes auto-response processing that creates a Task and EmailMessage and whether the affected path lacks those events.

 2. If any Workflow Rules exist, Salesforce recommends migrating the existing logic to Flow or Apex. However, if multiple Assignment Rule executions occur after migrating the logic to Flow or Apex, customers should avoid updating the record during the insert operation. Instead, they should move the update logic to a separate transaction using an asynchronous process, such as Future Apex.

Yderligere ressourcer

Guidelines for Assignment rules

Vidensartikelnummer

005465960

 
Indlæser
Salesforce Help | Article