When using Email-to-Case in Salesforce, fields on the Email Message object appear as selectable criteria in Auto Response Rules, Case Assignment Rules, and Milestones. However, when an email triggers case creation via Email-to-Case, rules that use Email Message fields are skipped or evaluate to false in debug logs. This is working as designed (WAD) due to the timing of when the Email Message record is saved relative to when automation rules fire.
This behavior is working as designed. Auto Response Rules, Assignment Rules, and Milestones run on the workflow engine, which pulls all fields related to the object in question as available criteria. Email Message appears in the list because it is related to Case via the Case Source field.
When Email-to-Case processes an incoming email, Salesforce first performs a database save on the Case object. At the time of the Case save, no Email Message record exists in the database yet. The Email Message record is saved later in the process. This means that when automation rules fire during the Case record save, no related Email Message record is found, so Email Message field criteria evaluate to false and the rule moves to the next entry.
To reproduce this behavior:
For Assignment Rules, create a Salesforce Flow or Workflow Rule to automatically populate the owner field. This substitutes the Assignment Rule functionality and allows owners to be assigned to cases created via Email-to-Case.
000384019

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.