Duplicate Contact Creation Issue in Frappe

Dear Support Team,

In the CRM module where duplicate Contacts are generated automatically when Leads with the same phone number or email ID are created.

Technical Notes:

  • Duplicates are generated even when the email or phone already exists in the Contact Email / Contact Phone child tables.

  • Creating a Lead with a phone number or email automatically creates a Contact.

  • Submitting another Lead with the same phone number or email should not create a duplicate Contact with a suffix if the Contact already exists.

Requirement:
Prevent duplicate Contacts and ensure seamless linking to the existing Contact.

Kindly provide a patch or recommended configuration to resolve this issue.

Thanks,

Kindly use the Unique property for the contact Email/ Contact phone fields

But if I make the phone field unique, I cannot create the Lead. I need to create multiple Leads for the same Contact without creating duplicate Contacts

If you don’t want to use unique, then you have to check whether the phone number exists or not, through the client-side or backend code