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?

Fixing common Salesforce Import errors and the surprises that follow a Load (opens in a new tab)

You will learn how to choose between the Data Import Wizard and Data Loader, what the most common import error messages mean and how to fix them, and why duplicate-rule matches and skipped automation can make a successful import look wrong.

Data Import Wizard

  • Runs in the browser from Setup
  • Up to 50,000 records per load
  • Objects the wizard lists in Setup
  • Results in Recent Import Jobs

Data Loader

  • Desktop app, Java 17 or later
  • Up to 150 million with Bulk API 2.0
  • All objects, including Custom Objects
  • Success and error CSV files per run
The Data Import Wizard and Data Loader differ in where they run and how far they scale

The article starts by separating the two import routes. The Data Import Wizard runs in the browser from Setup, suits smaller loads under 50,000 records on supported objects, and is the easier starting point. Data Loader is a desktop application that needs Java 17 or later, covers all objects including Custom Objects, supports upserts, deletes and scheduled command-line loads, and is the route to take when a file outgrows the wizard.

Most failures come from the file rather than the tool. The article walks through the usual causes: a missing required field such as Last Name, values that do not match a picklist exactly, inconsistent date formats, and values longer than the field allows. It explains that duplicate errors can fire against existing Contacts or Accounts because standard matching rules compare names and contact details by similarity, so the record to update may already exist under another Record Type. It also notes that automation can be skipped unless the trigger-workflow option is ticked, and that existing triggers or Validation Rules can reject mixed batches, which a split-by-value approach can work around. Import jobs run from a queue, so admins check Recent Import Jobs and Bulk Data Load Jobs for status and failure reasons, and users should check List Views, ownership and failed rows before re-importing.

The piece also covers fields missing from the mapping list because of page layout or field-level security, the permission needed to import Custom Objects, and the limits of imports, which cannot merge existing duplicates or change matching rules. The closing sections promote the author’s own tools, which the reader should weigh accordingly.

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

Worth reading?

A practical workflow for cleaning Salesforce data before implementing AI (opens in a new tab)

Readers will learn a structured five-step process for auditing and cleaning Salesforce records before deploying artificial intelligence features.

Why read this

The piece explains how to automate ongoing data hygiene using standard administrative tools to prevent model failures.

The article argues that artificial intelligence initiatives in Salesforce consistently fail when trained on unclean data, emphasizing that pattern matching models amplify existing record errors rather than masking them. Common issues include duplicate contacts and leads, incomplete required fields, inconsistent Picklist values, and stale records that cause Agentforce assistants to route cases incorrectly or generate inaccurate summaries.

To address these problems, the author recommends running a comprehensive data audit before approving any artificial intelligence project. This involves generating reports on empty key fields, executing Duplicate Jobs, and manually sampling records to create a data health summary for leadership approval. The cleanup must follow a strict sequence starting with deduplication, followed by populating critical fields, standardizing formats through Validation Rules, archiving inactive records, and enforcing data entry standards at the source.

Sustainable data quality requires moving beyond one-time projects by implementing automated maintenance routines. The author suggests scheduling recurring Duplicate Jobs, distributing weekly exception reports to record owners, and tracking completeness metrics on a dashboard. Once real data ownership is established and the operational layer is secured, Salesforce artificial intelligence capabilities such as lead scoring and case classification can function reliably without undermining user adoption.

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

Worth reading?