You need to sign in to do that
Don't have an account?

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