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
Rick RossiRick Rossi 

Apex Class Question: How would I send an email to a public group once a duplicate lead is converted into a duplicate account and contact?

Apex Class Question: How would I send an email to a public group once a duplicate lead is converted into a duplicate account and contact? I keep recieving error messages on mine, any help would be great.

Thanks!
ShivankurShivankur (Salesforce Developers) 
Hi Rick,

Please check out below helpful link where you will get some hint to implement this requirement:
https://douglascayers.com/2016/06/26/advanced-lead-conversion-with-process-builder/

You can utilize the process builder automation to send email alert with defined criteria for duplicate management.

Usual practice is like when you convert leads to contacts or accounts, the process sometimes creates duplicate records. If so, we show you a warning. Custom warnings set up by your administrator do not appear during lead conversion. When you begin to convert a lead, possible matches appear based on matching rules using standard fields. When you click Convert, additional matches can appear based on matching rules using custom fields. How these duplicate records are handled depends on how your administrator has set up Apex Lead Convert and Duplicate Management. For example, your administrator can require that you resolve the duplicates before you finish converting.

Reference: 
https://help.salesforce.com/articleView?id=sf.leads_notes.htm&type=5

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.