Workflow breakdown
Salesforce data cleanup automation: how the dedupe build works
Published 9 November 2026
Salesforce data cleanup automation works in two layers. Turn on duplicate and matching rules so new records are checked at save, then run a scheduled job that finds likely duplicates, enriches missing fields from a trusted source and queues merges for a person to approve. Nothing merges without a person's sign-off.
The short version
- Sample855 public job posts and project requests naming Salesforce, first seen 16 October to 8 November 2026.
- Asked forintegration in 159 briefs, enrichment in 42, migration in 12; cleanup words (clean, hygiene, data quality, duplicates) in 28 or fewer.
- Native limitsup to three matching rules per duplicate rule and five active matching rules per object (Trailhead, checked 9 November 2026).
- Who is hiring90% full-time roles; 7% contract or project work.
01What does Salesforce data cleanup automation actually cover?
It covers four jobs. Stop new duplicates at the point of entry. Find the duplicates already in the org. Fill or fix fields that are empty, stale or in the wrong format. Merge the records that really are the same person or company. The first job is mostly built into Salesforce. The other three are where an automation does the work, and where it can do damage if the matching is loose.
| Job | What runs it | Where it usually goes wrong |
|---|---|---|
| Block or warn on new duplicates | Salesforce matching rules and duplicate rules | Rules are set to alert only, reps click past the warning, and nobody reads the report |
| Find existing duplicates | A scheduled job that compares records on normalised keys | Junk values shared by many records, such as na@na.com, make unrelated people look like one |
| Enrich and standardise fields | A job that calls a data provider or applies fixed formatting rules | Fresh data overwrites a field a rep corrected by hand |
| Merge true duplicates | A person, working from a queue the job prepares | An automatic merge joins two different customers, and undoing it is slow |
Most pages that rank for this query sell one cleanup app. This page is about the build underneath any of them: the order of steps, and the checks that keep a cleanup from making the data worse.
02What do teams ask for when Salesforce data is the problem?
They ask for integration and enrichment far more often than cleanup. Our signal engine reads public job boards, company careers pages, freelance marketplaces and social posts every day and keeps one record per post. From 16 October to 8 November 2026 it logged 6,935 records. In 855 of them (12%), Salesforce is one of the tools named. We counted the words in each brief's written requirement. One brief can mention several.
| Work named in the requirement | Requests | Share of the 855 |
|---|---|---|
| Integration or integrating | 159 | 19% |
| Enrichment | 42 | 5% |
| Migration | 12 | 1% |
| Clean or cleanup | 10 | 1% |
| Hygiene | 9 | 1% |
| Data quality | 8 | 1% |
| Duplicates or deduplication | 1 | under 1% |
Our own tagging puts 107 of the 855 (13%) in the data enrichment and lead operations category.
These are keyword matches ("dup" for duplicates, "migrat" for migration, "enrich" for enrichment), so they are floors. A brief that says "keep the CRM trustworthy" is not counted. The window is just over three weeks, so read it as a snapshot.
What the counts suggest: duplicates are almost never written down, yet every integration and every enrichment job has to answer "which record is this?" before it writes. Integrations and syncs create records without a person checking first, which is how duplicates get in, so if you are briefing a builder for a Salesforce integration, add the matching rules to the brief.
03Who is hiring for this work?
Mostly in-house teams. Of the 855 Salesforce requests in the same window, 769 (90%) were full-time roles, 61 (7%) were contract or project work, and the other 25 were part-time, fractional or ongoing arrangements. Role words in titles: "engineer" in 212, "operations" in 127 and "admin" in 126.
Salesforce rarely appears alone. HubSpot was named alongside it in 246 of the 855 (29%), n8n in 119 (14%), Zapier in 111 (13%), Clay in 104 (12%), Make in 62 (7%) and ZoomInfo in 21 (2%). That mix matters for cleanup: records arriving from a second CRM, a sync tool or an enrichment provider are a common source of new duplicates, because each one writes records without a rep seeing the duplicate warning.
04What does Salesforce do about duplicates on its own?
More than many teams switch on. These rules are from Salesforce's Trailhead modules on duplicate management and data import, checked 9 November 2026. Check Salesforce Help for merge limits and Duplicate Jobs availability in your edition before a bulk merge.
| What you need | What Salesforce says |
|---|---|
| Duplicate checks at all | Duplicate Management is "available to and free of charge for Professional, Enterprise, and Unlimited editions" |
| Which records it covers | Business accounts, contacts, leads, person accounts and records from custom objects |
| What finds a match | A matching rule sets the criteria; standard rules ship for business accounts, contacts and leads, with fuzzy options such as name variants and edit distance |
| What happens on a match | A duplicate rule can block the save, or allow it with an alert, and can add the pair to a report |
| How many rules | Up to three matching rules in each duplicate rule, and up to five active matching rules per object |
| Report on what slipped through | A custom report type with Duplicate Record Items shows duplicates created after reps bypassed a warning |
| Small imports | The Data Import Wizard handles up to 50,000 records at a time and lets you add, update, or add and update, with matching criteria you choose |
| Large or scheduled imports | Data Loader handles up to 150 million records, can run from the command line, which lets you automate and schedule imports, and uses the SOAP API or the Bulk API |
| Validation on import | Validation rules run before records are imported, and records that fail are not imported |
Two points shape the build. First, Salesforce's guidance is to clean the import file and remove duplicates before an import, so the best cleanup step is the one that runs before data arrives. Second, Trailhead's data cleanup module warns about false matches from shared junk values and says merging re-parents child records, so tools that support unmerge or rollback are worth having before you merge at scale.
05A worked example: a nightly dedupe and enrichment job
Take an org where leads and contacts arrive from web forms, a HubSpot sync and list imports. Here is how we would build a nightly cleanup in n8n, Zapier or Make, calling the Salesforce API. Every check runs before any write.
- Prevention first. Activate the standard matching rules for leads, contacts and accounts, and set the duplicate rules to alert and report. Move to block only once the report shows the rules catch real duplicates and not false ones.
- Pull what changed. Each night, query leads, contacts and accounts created or modified since the last successful run. Store that timestamp only after the run finishes, so a crash means the next run picks up the same records.
- Normalise the keys. Lowercase and trim emails, strip phone numbers to digits, take the domain from the website field, and remove company suffixes such as Inc. and Ltd for comparison only. Never write these normalised values back over the originals.
- Drop junk values. Keep a list of values that many records share and that mean nothing, such as na@na.com, test emails and the company's own switchboard number. Records that match only on these are never paired.
- Score candidate pairs. Exact email match is a strong match. Same domain plus a similar name is a medium match. Name alone is not a match. Write each pair, its score and the fields that matched to a review queue, keyed on the two record IDs so the same pair is never queued twice.
- Enrich only empty fields. For records missing industry, size or title, call your enrichment provider. Write only to fields that are empty, and stamp a source field and a date field so anyone can see where the value came from. If the provider fails, leave the field empty and log it.
- Merge with sign-off. A person reviews the queue, picks the surviving record and approves. Only then does the workflow merge, after checking that both records still exist and have not changed since the pair was queued.
- Failure handling. Retry a failed write a set number of times. After that, park the record with its error and email a named person, naming the step that failed.
A one-time cleanup before a migration follows the same steps on a full export instead of a nightly delta, run first on a small test file, as Salesforce recommends for imports. How records should be matched on the way in, from calls, emails and forms, is on our CRM data entry page.
06The checks to run before anything is merged
Our eight checks apply to every build. Here is what each one means for Salesforce cleanup, and how to test it.
| Check | What it means for Salesforce cleanup | How to test it |
|---|---|---|
| ST1 Test set | A fixed set of real record pairs, each marked "same" or "different" by a person first | Run the job and compare every pair it queues or skips |
| ST2 Prompt attack | If AI suggests matches or fills fields, a record's notes can carry hidden instructions | Put an instruction in a description field; the job must ignore or flag it |
| ST3 Run twice | Running the same night twice adds no new queue items and no second enrichment call | Rerun on the same delta and count queue rows and API calls |
| ST4 Failure recovery | A failed update or merge is retried, then parked for a person, never dropped | Break the connection mid-run and check where the record went |
| ST5 Load and limits | A full-org backfill stays inside API limits and the enrichment budget per run | Run the largest batch you expect and watch for limit errors |
| ST6 Failure alert | A named person gets an email that says which step failed | Force a failure and read the alert |
| ST7 Human sign-off | No merge or delete happens without an approval | Check that a queued pair stays unmerged until approved |
| ST8 Rules around the AI | Fixed rules decide what counts as a match; AI can only suggest | Feed a pair that AI calls a match but the rules do not, and check it is not merged |
07What should stay with a person?
Keep a person on the decisions that are hard to undo:
- Every merge. The job finds the pair and shows the evidence. A person picks the surviving record and approves.
- Medium-score pairs. Same domain and a similar name can be two colleagues at one company. Show both records, do not guess.
- Records that must stay separate. Trailhead calls these intentional duplicates, for example a supplier and a customer account for the same firm.
- Changing a rule from alert to block. Blocking stops reps from saving records, so the owner of the sales process should agree first.
08How we approach a build
We start with a read-only pass: count likely duplicates, list the junk values, and show you the pairs before anything changes. Then we build the prevention rules, the nightly job and the review queue, test them against the eight checks on a copy of your data, and hand over with a written runbook. Our process page shows the steps.
09Questions people ask
How do I clean up duplicate records in Salesforce automatically?
Switch on matching rules and duplicate rules to stop new duplicates, then schedule a job that finds existing pairs on normalised keys and queues them for review. Let the finding run unattended, and keep a person on the merge itself.
Is Salesforce Duplicate Management free?
Trailhead says it is available free of charge for Professional, Enterprise and Unlimited editions (checked 9 November 2026). It covers business accounts, contacts, leads, person accounts and custom objects.
Should I use the Data Import Wizard or Data Loader for a cleanup?
The Data Import Wizard suits loads under 50,000 records and supported objects, and it lets you set matching criteria for updates. Data Loader suits 50,000 to 150 million records, unsupported objects and scheduled loads, according to Trailhead (checked 9 November 2026).
Can AI decide which Salesforce records are duplicates?
It can suggest pairs, but fixed rules should decide what counts as a match, and a person should approve the merge. Trailhead's data cleanup module warns that false matches from shared junk values combine the wrong customers.
Which tool should we build Salesforce cleanup in?
The checks matter more than the tool. If you are choosing, the n8n vs Zapier vs Make comparison covers how each one bills and handles failures. If you would like a second pair of eyes on yours, book a free 30-minute workflow review.
10Sources
- Salesforce Trailhead, Improve Data Quality in Salesforce, Duplicate Management module, checked 9 November 2026.
- Salesforce Trailhead, Resolve and Prevent Duplicate Data in Salesforce, Duplicate Management module, checked 9 November 2026.
- Salesforce Trailhead, Import Data, Data Management module, checked 9 November 2026.
- Salesforce Trailhead, Identify and Manage Duplicate and Disconnected Records, Data Cleanup Fundamentals module, checked 9 November 2026.
- Salesforce Trailhead, Improve Data Quality, Data Quality module, checked 9 November 2026.
- after.machines signal engine: public job posts and project requests naming Salesforce, first seen 16 October to 8 November 2026, counts only, no company or person names, checked 9 November 2026.