You need to sign in to do that
Don't have an account?
himanshu huske 7
sfdc
Please help me with simple code...
A trigger that will prevent a user from creating a lead that already exists as a contact. We will use the lead /contact email address to detect duplicates.
Lead is created or updated.
Lead has an email address.
2. Try to find a matching contact based on email address.(Using SOQL)
If a match is found give an error
If a match is not found do nothing
A trigger that will prevent a user from creating a lead that already exists as a contact. We will use the lead /contact email address to detect duplicates.
Lead is created or updated.
Lead has an email address.
2. Try to find a matching contact based on email address.(Using SOQL)
If a match is found give an error
If a match is not found do nothing
Try below code, I did this in notepad, apologies for any syntax error.
Let us know, if this helps.
Thanks,
Govindaraj.S