+ 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 !