Sweet Potato

Categories
Blog

Salesforce Duplicate Management

Overview:

The duplicate rule and matching rule are linked with each other.

What is Matching Rule?

A matching rule defines how duplicate records are identified in duplicate rules. Salesforce provides standard matching rules for business and person accounts, contacts, and leads. You can also create custom matching rules

What is Duplicate Rule?

A duplicate rule defines what happens when a user views a record with duplicates or starts creating a duplicate record. Salesforce provides standard duplicate rules for business and person accounts, contacts, and leads. You can also create duplicate rules. Now, let’s move on how to create this in salesforce,

Steps to create this:
  1. Go to Setup–>Duplicate Rule.
  2. There are a couple of duplicate rules for Lead, Account & Contact.
  3. To make the duplicate rule work the matching rules should be active.
  4. Below is the explanation of every option in the duplicate rule.
Explanation of each option:
  1. Rule Name: Name of the rules like we give for a custom field. We can change it if needed.
  2. Description: To identify the purpose of the rule.
  3. Object: The object which the duplicate rule should work.
  4. Record level security: We have 2 options.
    1. Enforce sharing rule – Check the duplicate on records which can read by the user.
    2. Bypass sharing rule – Check the duplicate on all records regardless of the user have access to the record or not.
  5. Action on create: We have 2 options
    1. Allow – This will show the error if you are creating the duplicate record if this checkbox is checked.
    2. Report – This will not show the error but it will create the records on Duplicate Error Log report
  6. Action on edit: This works same like Create but it will work on the edit of an existing record.
  7. Operation on Create: We have 2 options,
    1. Alert – If checked this will alert the user on create.
    2. Report – If checked this will create a duplicate record which we can use reports to identify it
  8. Operation on Edit: We have 2 options,
    1. Alert – If checked this will alert the user on create.
    2. Report – If checked this will create a duplicate record which we can use reports to identify it.
  9. Alert Text: Used to display the error message whenever a user creates a duplicate record.
  10. Active: This is used to identify if the rule is active or not.
  11. Matching Rule: This is used to identify how the records should match and find the duplicate. So, normally whenever a user creates a duplicate record it will show the error message like in the below screenshot.
Reference links:
  1. https://help.salesforce.com/articleView?id=matching_rules_standard_rules.htm&type=5
  2. https://trailhead.salesforce.com/en/content/learn/modules/sales_admin_duplicate_management