Managing duplicate Leads and Contacts is a common challenge in Salesforce. This article explains how to configure Salesforce Matching Rules and Duplicate Rules to identify and manage duplicate Leads and Contacts. It also covers testing duplicate detection, displaying potential duplicates on record pages, and using Screen Flows to enhance duplicate management and improve data quality.
This article answers a common question support engineers see: how do you stop duplicate Lead and Contact records from piling up in Salesforce, and how do you clean up the ones that already exist? Salesforce relies on two connected tools to solve this: Matching Rules, which define how potential duplicates are identified, and Duplicate Rules, which define what Salesforce does once a match is found.
To identify Lead duplicates, Salesforce leverages Matching Rules and Duplicate Rules:
You can create a custom Matching Rule if you want to adapt the standard behavior. This article uses the Standard Matching and Duplicate Rules. These are the conditions that apply by default when Salesforce checks whether a new or updated Lead record matches an existing one:
a. Record-Level Security: Defines whether the rule applies only to records the current user can access under Sharing Rules, or to all records regardless of access, by bypassing Sharing Rules.
b. Actions: Defines whether Salesforce blocks or allows the creation of the Lead. You can either block a Lead creation or update outright, or allow the creation or update of the duplicate record while showing an alert.
c. Check or update the Contact and Lead field mappings based on Email, Company, Domain, and other relevant fields. This section defines the Matching Rules used to compare the newly created Lead with existing Lead and Contact records.
d. Save and Activate: Once saved, make sure the Standard Duplicate Rule, or the custom one you have set up, is Active. Otherwise, click Activate.
a. Navigate to the Lead record detail page.
b. Click the Gear icon, then Edit Page.
c. Drag the Potential Duplicates component from the Components pane onto the Lead record page.
d. Click Save and Activate.
Once the Matching and Duplicate Rules are activated, and the Lead record page is updated, create a duplicate record to confirm your configuration behaves as expected.
a. Go to the Leads tab and click + New Lead.
b. Create a Lead using the same field values as an existing Contact — for example, Ms. Stella Pavlova.
c. A few seconds later, a toast message appears on the Lead record page indicating there may be a duplicate.
d. Click View Duplicates from the toast message to see a dedicated screen with both the duplicate Lead and Contact information.
Note: Because Leads and Contacts are different object types, they cannot be merged directly. For two similar Leads, or two similar Contacts, you can merge them. For a Lead/Contact pair, the simplest approach is to open both records, complete the Contact, log any relevant activity or discussions, and delete the Lead record — or update its status.
Duplicate information doesn't display cleanly on the Lead record page itself, but it is available on the Contact record page as shown above. To see it clearly on the Lead record with full details, switch to Classic mode and click Find Duplicates on the Lead record.
005386514

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.