How do I deduplicate leads automatically?

Automatically deduplicating Leads in Salesforce is crucial for maintaining data quality, improving user adoption, and ensuring your sales and marketing teams aren’t wasting time contacting the same person multiple times. Salesforce provides built-in tools called Duplicate Rules and Matching Rules to automate this process.

Step 1: Define the Matching Rules

The Matching Rule defines how Salesforce identifies a record as a duplicate. It uses field values to compare two records.

How do I deduplicate leads automatically? | Salesforce | Step 1
  • Navigate to Setup: Click the gear icon (⚙️) to Setup.
  • Find Matching Rules: In the Quick Find box, type Matching Rules and select it under Data.
  • Create New: Click “New Rule” and select the Lead object.
How do I deduplicate leads automatically? | Salesforce | Step 1.2

Define Conditions:

How do I deduplicate leads automatically? | Salesforce | Step 1.3
  • Name the Rule: Give it a descriptive name (e.g., Standard Lead Match – Email and Company).
  • Select Fields: Choose the fields the rule should use for comparison.
    • Optimal Combination: Use fields that are required and unique, such as Email and Company Name. You can also include Last Name.
  • Matching Method: For each field, define the matching method:
    • Exact: Requires an identical match (optimal for Email).
    • Fuzzy: Allows for minor variations, common misspellings, or punctuation differences (optimal for Company Name).
    • Click Save and then Activate the rule.

Step 2: Create the Duplicate Rule

The Duplicate Rule defines the actions Salesforce takes when a match is found based on the Matching Rule created above.

How do I deduplicate leads automatically? | Salesforce | Step 2
  • Navigate to Duplicate Rules: In the Quick Find box, type Duplicate Rules and select it under Data.
  • Create New: Click “New Rule” and select the Lead object.
  • Define Actions:
    • Name the Rule: Use a name that reflects the object and action (e.g., Block Duplicate Lead Creation).
    • Security: Set the Security level (optimal to apply to all users).
    • Set Action on Create:
      • Alert: Show the user an alert that a duplicate exists but still allow them to save the record (soft warning).
      • Block: Prevent the user from saving the new record entirely (strict control).
      • Optimal Choice: Select “Block” to prevent duplicate data from entering the system.
    • Set Action on Edit: Define the action if an existing record is edited and the changes create a duplicate.
  • Select Matching Rule: Under Matching Rules, ensure the rule you created in Step 1 (e.g., Standard Lead Match – Email and Company) is selected.
  • Customise Alert Text: Write a clear message that appears when a user triggers the alert/block (e.g., “This Lead appears to already exist. Please check existing records before proceeding.”).
  • Click Save and then Activate the rule.

Step 3: Implement Custom Reporting

How do I deduplicate leads automatically? | Salesforce | Step 3

Once the rules are active, you can monitor the duplicates your users are (or are not) creating.

  • Duplicate Record Sets: Salesforce automatically creates Duplicate Record Sets for records that match your rules.
  • Click the App Launcher (the 3×3 grid ⠿) in the top-left corner.
  • In the search box, type Duplicate Record Sets.
  • Click on the resulting tab/item
  • Review and Merge: Regularly review these sets. An administrator can use the Merge feature to combine duplicate records into one master record, preserving data integrity.

UTDS Optimal Tip: Always implement a “Block” action for critical objects like Leads and Contacts to stop duplicates at the point of entry.

Last Updated 2nd February 2026.

Was this article helpful?

We publish our Knowledge Base to help individuals and businesses resolve common issues across websites, advertising platforms, Salesforce and other digital systems.

We regularly review and update our guides, but the platforms, software and services covered can change without notice. As a result, screenshots, settings, features or recommended processes may differ from those available when an article was last reviewed.

The information provided is general guidance and should not be treated as advice specific to your systems or circumstances. UTDS Optimal Choice cannot accept responsibility for errors, data loss, service disruption or other issues resulting from changes made by following these guides.

If you are unsure about any of the steps, particularly where a change could affect live systems, data, tracking or business processes, we recommend speaking to us before making the change. Our team can review your specific setup and provide advice based on the current platform and configuration.

Time for some professional support?

Our team area ready to help. As one of the few digital agencies that is a registered Salesforce Consulting Partner and Google Partner Agency, UTDS Optimal Choice is expertly positioned to support you across your entire digital landscape.