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
Brandon COFFINBrandon COFFIN 

Best practice for perform query when record is created

Hello,

I would like to know the best practice for, when a Lead is created, check if one Account have the same email.
I tried with Apex but I'm not having good results.

Thanks for you answers
Best Answer chosen by Brandon COFFIN
Akhil AnilAkhil Anil
Hey Brandon,

The best and the most efficient way to do this is none other than using the native duplicate management tool readily available in the Salesforce platform.

The below pdf document will give you everything you need to setup a duplicate rule. It can easily identify if an Account exists with the same email Id.

https://resources.docs.salesforce.com/200/10/en-us/sfdc/pdf/salesforce_data_quality_duplicate_prevention.pdf

Kindly mark it as an answer if that resolves your problem !

All Answers

Akhil AnilAkhil Anil
Hey Brandon,

The best and the most efficient way to do this is none other than using the native duplicate management tool readily available in the Salesforce platform.

The below pdf document will give you everything you need to setup a duplicate rule. It can easily identify if an Account exists with the same email Id.

https://resources.docs.salesforce.com/200/10/en-us/sfdc/pdf/salesforce_data_quality_duplicate_prevention.pdf

Kindly mark it as an answer if that resolves your problem !
This was selected as the best answer
Brandon COFFINBrandon COFFIN
Thank you, I set your comment in best answer !