The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

Using Duplicate Rules and Matching Rules to stop Duplicate records in Salesforce (opens in a new tab)

You will learn how duplicate rules and matching rules work together, how to choose matching criteria, and a practical order for rolling out Alert and Block modes with a regular cleanup routine.

  1. Enable duplicate rules in Alert mode
  2. Watch alerts for about two weeks
  3. Fix matching rules that are too loose or tight
  4. Switch worst offenders to Block
  5. Schedule a monthly duplicate cleanup
The suggested order for rolling out duplicate rules

Duplicate records quietly undermine reporting in a Salesforce org. Duplicate Rules watch records as they are created or edited and compare them against existing records using a Matching Rule. When a match is found, the rule either blocks the save or warns the user. The article recommends starting in Alert mode, since a hard block on leads can stop reps from logging genuine new opportunities.

The Matching Rule determines how well the Duplicate Rule performs. The article suggests matching contacts and leads on email, which it describes as the most reliable single identifier, and matching accounts on name plus a second field such as website, phone or billing city, because name alone produces false positives. Fuzzy matching, where offered, catches variants like Jon and John Smith, and the matching threshold should be set so that users are not warned constantly.

Duplicates usually enter through Web-to-Lead and data imports, manual entry, and integrations whose matching criteria do not line up with the Duplicate Rules. Existing duplicates are handled separately with Duplicate Record Sets and the Potential Duplicates component on record pages. When merging, the article advises keeping the record with the most history and assigning the merge process to one or two admins on a monthly schedule.

The suggested setup order is to enable Duplicate Rules in Alert mode for accounts, contacts and leads, watch the alerts for about two weeks, adjust matching if users ignore alerts or never see them, then move the worst offenders to Block. Required fields such as email or company can further improve matching reliability.

Read the original at dev.to (opens in a new tab)

Worth reading?