Custom Function: Deduplicate Leads and Contacts
We get some leads from a contact form in our website, and we would like to prevent creating a new lead if a contact with the same email address exists.
We are looking for a custom function that helps us to identify if there is an existing contact with the same email address and then delete the lead or (better) avoid its creation. Can you help us with the code?
Many thanks,
Albert