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
Ferdy Reyes 3Ferdy Reyes 3 

Flow to filter Contact connected to Case by email-to-case

We have a validation rule where a Contact whose custom field does not match matching custom field in Case Contact and Account will be not be linked in Case. For some reason, regardless of the validation rule, Email-To-Case links the Contact and corresponding Person Account to Case as long at it matches SuppliedEmail.

Is there a way to filter the Contact when the Case is created by Email-To-Case? Declarative solution or trigger is welcome.
Best Answer chosen by Ferdy Reyes 3
PriyaPriya (Salesforce Developers) 

Hi Ferdy,

Use case source which is set by email to case to differentiate and determine the contacts linked. 

Please mark it as best answer if the above information helps you.
 

Regards,

Priya Ranjan