Cert++
Close

Matching rules versus duplicate rules

Key Takeaway

A matching rule detects duplicates and a duplicate rule responds to them. A matching rule does nothing for users until a duplicate rule (or a duplicate job) uses it.

Salesforce uses two kinds of rules together to control duplicate records. A matching rule defines how to tell that two records are duplicates. A duplicate rule decides what happens when duplicates are found, such as warning the user with an alert, blocking the save, or logging it for a report.

How the two rules work together
Matching ruleDuplicate rule
What it isThe detection logicThe response policy
How it worksIt is an equation that compares fields in a pair of recordsWhen Salesforce finds duplicates, it engages its matching rules and decides what action to take

When a user creates, clones, or edits a record, the two rules work in this order:

  1. The duplicate rule runs.
  2. Its matching rule produces a list of possible duplicates.
  3. The duplicate rule then either blocks the user (the Block option) or lets them save with an alert (the Allow option).
  4. The duplicate rule can also add the saved duplicate to a report for a manager to see.

Duplicate jobs also use matching rules, to find duplicates across the whole org.

Platform Administrator Study Guide

Checklist progress

0/324Learned

Describe the capabilities and implications of data validation tools (duplicate and matching rules, validation rules)

0/12

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform Administrator studiers.