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
Susy FongSusy Fong 

Need help in creating an email trigger when 2 specifics users try create the same lead or client contact record

Best Answer chosen by Susy Fong
Susy FongSusy Fong
We have a duplicate rule set up if users try to create a duplicate lead or client contact record message pops up - but would like to have an apex trigger that

if two specific users;
user id ABC and user id XYZ create a duplicate lead or client contact record then an email will be sent to sneha@bosleyrealestate.com

This makes sense?

Thanks, much appreciated

 

All Answers

v varaprasadv varaprasad
Hi Susy,

Your requirement is needed to create a lead record through email right? or Apex trigger?
Please explain clearly so that we can help you.



Thanks
Varaprasad
Salesforce Freelance Consultant/Developer/Administrator
@For Salesforce Project Support: varaprasad4sfdc@gmail.com


Salesforce latest interview questions  :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1



 
Susy FongSusy Fong
We have a duplicate rule set up if users try to create a duplicate lead or client contact record message pops up - but would like to have an apex trigger that

if two specific users;
user id ABC and user id XYZ create a duplicate lead or client contact record then an email will be sent to sneha@bosleyrealestate.com

This makes sense?

Thanks, much appreciated

 
This was selected as the best answer