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
Raghav TRaghav T 

Case is getting linked with Contact

Hi there,
Is this the standard and default functionality?
There is a contact present in an Org with Email Id(abc@gmail.com) in it.
Now the case is getting created from Email to Case by the Same Email Id(abc@gmail.com).
Once the case gets created it automatically associates that Case with the Contact which has Same Email Id(abc@gmail.com).
But this is only happens in a case where there is only single contact withemail id.
But it does not associate the case to contact when there are multiple Contact with the same Email Id(abc@gmail.com).
Can anyone explain me the reason.
Thanks.
AnkaiahAnkaiah (Salesforce Developers) 
Raghav,


When an incoming email creates a Case in Salesforce via Email-to-Case, the logic looks to match the email address in the 'From' field to a Contact's email address in Salesforce. If a match is returned, the system associates the created Case to the related Contact record.

Refer the below help article.
https://help.salesforce.com/s/articleView?id=000328268&type=1

https://help.salesforce.com/s/articleView?id=000336162&type=1

If this helps, please mark it as best answer.

thanks!!