Customize Duplicate Rules
- From Setup, use the Quick Find box to find DuplicateRules.
- To edit a rule, click the rule name, and click Edit. To create a rule, click New Rule, and select the object you want the rule to apply to.
- Enter the rule details, including a name, description, and record-level security settings.If you’re working toward complying with various data protection and privacy regulations, consider excluding personal data from the name and description.
- Select the actions you want to occur when a user starts creating a duplicate.The default actions are to alert users when they start to create a duplicate, and report on duplicates created when users create or edit records. You can customize the provided alert text.
- In the Matching Rules section, select the object to compare records on. Then select the matching rule that determines how records are identified as duplicates.The list includes all available matching rules for the selected object.TipIf you want to use a new custom matching rule, we recommend that you finish creating your duplicate rule before selecting Create New Matching Rule. Then create and activate the matching rule. The new matching rule is automatically associated with the duplicate rule.
- Select the field mapping for each matching rule, if needed. If the matching rule compares records on two different objects or uses custom fields:Decide how you want to compare the fields on the first object to the fields on the second object. For example, map a custom field called Work Email to the standard Email field.If two text fields with different maximum lengths are compared, data in the fields can be truncated before a match is determined.
- Decide how you want to compare the fields on the first object to the fields on the second object. For example, map a custom field called Work Email to the standard Email field.
- If two text fields with different maximum lengths are compared, data in the fields can be truncated before a match is determined.
- If you want your duplicate rule to run only when specific conditions are met, enter the conditions. For example, the rule runs only if a record is being created by a user with a certain profile or role. Or set a condition for the rule to run only if the record includes a specific country, state, or province.
- Save and activate the rule. For the activation to succeed, all associated matching rules must be active.
- If you have more than one active duplicate rule for a particular object, consider adjusting the order in which the rules are processed. Reorder rules by clicking Reorder on any rule’s detail page.Tip If the first duplicate rule finds a match for a particularrecord, subsequent duplicate rules skip that record. Arrange your duplicaterules so that rules with the Block option run before rules with the Allowoption.