Skip to main content
Dedupe Salesforce

Duplicate Rules and Matching Rules in Salesforce

By March 20, 2024September 16th, 2024No Comments

March 20, 2024: This article has been updated to include Data Cloud. 

Salesforce Data Management

If your organization uses Salesforce, chances are that you’ve grappled with duplicate records at some point. With data coming from many sources such as direct user entry, imports using the Salesforce Data Wizard or third-party integrations, it’s pretty difficult to maintain good data hygiene. That being said, there is an out-of-the-box functionality that allows you to de-duplicate directly in Salesforce, the Salesforce Duplicate Management feature.

The duplicate management feature gives you a way to define how your organization identifies duplicates and what Salesforce should do when a duplicate is detected. The functionality relies on two main components:

Salesforce Matching Rules: Matching rules are used to determine whether the record that is being created or edited by the user is, in fact, a duplicate. For example, if two contacts have the same email address they will be classified as a duplicate if the matching rule for email addresses is‘exact’ or ‘fuzzy’.

Salesforce Duplicate Rules: Duplicate rules are used to define the action that Salesforce should take when the user is editing or attempting to create a duplicate record. For example, a duplicate rule can be customized to block users from saving records that meet Salesforce standard matching rules criteria, or simply alert the user that they are potentially creating a duplicate record.

Salesforce Duplicate and Matching Rules

When to Use Salesforce Matching Rules & Duplicate Rules

In an ideal world, matching and duplicate rules should be deployed upon implementing Salesforce. If you’re like most users, deploying rules in a mature environment, consider running a Salesforce duplicate job to get a list of records that meet the criteria outlined in the rules.

Salesforce Duplicate Jobs are an integral part of the Salesforce Duplicate Management system, they’re designed to scan your existing records to find duplicates and are immensely useful in large datasets where manual detection is nearly impossible. Executing a duplicate job is straightforward. You first select the object (like Contacts or Accounts) and the matching rule you want to use. Then, Salesforce will scan the selected object’s records using the defined rule and compile a list of potential duplicates. The results of a duplicate job are visible in the Duplicate Record Sets page, where each set contains the potential duplicate records. By having this overview, you can review the suggested duplicates and decide whether to merge or dismiss them, providing greater control over your data’s integrity.

Note, Duplicate Jobs are only available in Unlimited and Performance Editions of Salesforce and can only scan a maximum of 50 million records. If your dataset exceeds this limit, Salesforce Deduplication will only scan the most recently updated records. Also, the duplicate job doesn’t stop new duplicates from being created; it merely helps identify existing duplicates.

Salesforce Matching Rule and Duplicate Rule Limitations

While Salesforce Duplicate Management provides a good starting point, it may fall short of what you need to eliminate duplicates completely.  Here are some limitations that you should be aware of:

  1. Only five duplicate rules can be deployed on each object (leads, contacts and accounts). The max rule limitation makes it nearly impossible to have a rule that covers all duplicate scenarios.
  2. Duplicate prevention rules may result in data loss when information is passed from third-party integrations. For example, if you pass records into Salesforce from a marketing automation system, they can be blocked from being created and the additional intelligence/field data may also be lost.
  3. Users will still need to merge Salesforce accounts, leads, and contacts manually, and the usual out-of-the-box limit for merging up to three duplicates at a time still applies.
  4. You can bypass Salesforce sharing rules when activating duplicate rules.  In this event the rule may trigger a duplicate alert, but the user will not be able to see and/or edit the duplicate if they do not have access to the record.
  5. Given that duplicate jobs are only available in Performance and Unlimited Editions of Salesforce, organizations using other editions will need to look at alternatives for data created prior to deploying duplicate rules and matching rules.

Salesforce Deduplication vs Data Cloud

A critical factor that has altered the landscape since we first released this blog is the introduction of generative AI technologies, such as Salesforce Einstein and ChatGPT. Einstein needs data. While your Salesforce org has plenty of good information about your customers, it is almost certain that your organization has other data silos that can be used by Einstein to generate a more complete picture.  Hence, Salesforce Data Cloud has come to prominence. 

Data Cloud

Let’s start off by pointing out that Data Cloud is not a deduplication tool.  It will not merge or remove duplicates.  Data Cloud will ingest data from Salesforce and external sources. Once this data is available, Data Cloud will identify information that is related to a specific individual and then select the “best value” for a unified field and the “best profile” based on standard matching criteria.  

Here is an overview of Identity Resolution Rulesets: 

  • Identity Resolution Match Rules “unify” profiles to eliminate duplicates.  They are limited to specific objects such as Accounts and Individuals and support fuzzy and exact matching.
duplicate rules - match rule
  • Identity Resolution Reconciliation Rule selects the best value to save to a unified field during the identity resolution process.
duplicate rules - default rule

Alternative Solutions

Given the limitations of the out-of-to-box Salesforce duplicate management feature and the time involved in merging the resulting duplicates, you may want to consider a third-party Salesforce duplicate management tool.

Using a third-party tool, like DataGroomr, that uses Machine Learning algorithms to automate duplicate detection allows you to sidestep creating rules and filters and gives you the ability to merge duplicate Salesforce records efficiently. In addition, if you’re looking for replacement of Salesforce duplicate jobs, DataGroomr comes with the export duplicates feature that can populate Duplicate Record Sets.

Want to try it? Click the ‘Free Trial‘ button at the top right-hand side of this post.

FAQ

What is a duplicate rule in Salesforce?

A duplicate rule in Salesforce defineswhat happens when somebody tries to create a duplicate record or views a record with duplicates. Salesforce offers some duplicate rules for standard objects, and you can createother rules as well.

How can you bypass duplicate rules in Salesforce?

It is possible to set up custom conditions to bypass duplicate rules. This can be helpful if you feel that the current duplicat rules you have are displaying false positives or if you have something like an API user profile where you want a record to be automatically created whether or not it is a duplicate.

How many duplicate rules can be active in Salesforce?

You can use up to five active duplicate rules per object. You can add up to three matching rules in each duplicate rule, with one active matching rule per object.

What are the limitations of duplicate rules?

The limitations of duplicate rules are that they have to be manually created, which take a lot of time. Also, you have to account for each variation of a duplicate by creating a specific rule to account for that variation. All of this is in addition to the fact that you can only merge three duplicates at a type with the Salesforce native functionality.

What is the Salesforce duplicate rules alert?

When a duplicate rule is triggered, Salesforce will alert the user that they are about to create or edit a duplicate record. It is also possible to report these actions as well. The exact text of this alert can be customized.

Steven Pogrebivsky

Steve Pogrebivsky has founded multiple successful startups and is an expert in data and content management systems with over 25 years of experience. Previously, he co-founded and was the CEO of MetaVis Technologies, which built tools for Microsoft Office 365, Salesforce and other cloud-based information systems. MetaVis was acquired by Metalogix in 2015. Before MetaVis, Steve founded several other technology companies, including Stelex Corporation, which provided compliance and technical solutions to FDA-regulated organizations. Steve holds a BS in Computer/Electrical Engineering and an MBA in Information Systems from Drexel University.