How OneMerge works with Duplicate Record Sets

How OneMerge works with Duplicate Record Sets

Salesforce finds duplicates. OneMerge resolves them. OneMerge works with the Duplicate Record Sets Salesforce already uses. You decide how duplicates are merged, whether a person reviews them first, and whether the duplicates are deleted or kept.

What is a Duplicate Record Set?

A Duplicate Record Set is the standard Salesforce record that groups records thought to be the same person, company or thing. Each record in the group is a Duplicate Record Item. The sets your users already see in Salesforce are the sets OneMerge resolves.

From a set to one record

Salesforce Duplicate Record Sets come from Duplicate Rules, the Matching Job or Find Duplicates; OneMerge resolves each set by Platform Merge or Custom Merge

From a Duplicate Record Set to one record: Platform Merge keeps one record, Custom Merge keeps every record and links duplicates to the master.

Where do sets come from?

Salesforce Duplicate Rules. A rule set to Report creates a set when a user or an integration saves a duplicate.

Salesforce Duplicate Jobs. Available in Salesforce Unlimited and Performance Editions, these jobs scan existing records using a Salesforce matching rule and create sets for the duplicates they find.

The OneMerge Matching Job. It checks your existing records against your Salesforce matching rules and creates sets for the duplicates it finds. Run it on a schedule or on demand. This feature offers an equivalent capability to Duplicate Jobs for Salesforce Enterprise Edition.

The OneMerge Find Duplicates UI. Users search for duplicates in the OneMerge app, then save the results as sets or merge them straight away.

What OneMerge does with a set

  1. Chooses the Merge Ruleset. This is your configuration for the Salesforce object: how to choose the surviving record, which values to keep, and whether to Platform Merge or Custom Merge.
  2. Chooses the Master Record. This is the record that survives, picked by your priorities, for example a quality score and then the oldest record.
  3. Keeps the best field values. Your Merge Rules decide field by field, so the master keeps the best value for each field, such as the most recently updated phone number.
  4. Merges and records the result. Each merge is recorded in a Merge Result, which you can review or roll back later.

Automatic or reviewed?

You decide how much happens automatically. Sets can be merged by a scheduled Merge Job, as soon as they are created (realtime merge), from a Flow or Apex, or by a user from Find Duplicates or the Merge screen. With data stewarding, sets are held for review, and a person accepts or rejects each one before anything is merged. This can be useful for sensitive data or to align with compliance requirements.

When a record is in more than one set

A record can appear in several sets, for example when two Duplicate Rules both find it. OneMerge handles this for you:

  • Sets are processed newest first.
  • If a set shares a record with one already merged in the same run, OneMerge merges it on the next run, with the records left in it.
  • After a merge, the records merged away are removed from every other set they were in. A set left with one record is removed.
  • Find Duplicates shows every set a record belongs to, so users see the full picture before they save or merge.

Platform Merge

Platform Merge gives you one clean record.

  • It uses the standard Salesforce platform merge function for Accounts, Contacts, Leads, Individuals and Person Accounts.
  • The master is kept and the other records are deleted.
  • Related record such as Contacts, Opportunities, Cases and Activities move to the master automatically.
  • Deleted records go to the Salesforce Recycle Bin.
  • Use Platform Merge when you want one record only and don’t need to keep the duplicates.

Custom Merge

Custom Merge keeps every record.

  • Each duplicate gets a lookup to its master, for example a Lead linked to the Account it was merged into.
  • The master’s values are updated by your Merge Rules, as with a Platform Merge.
  • Related records can move to the master using reparenting rules you configure.
  • It works for standard objects, custom objects and across objects, such as Leads into an Account.
  • Use Custom Merge when you need the original records for history, audit, compliance, integration or reporting.

Records kept by Custom Merge

A duplicate kept by Custom Merge has been dealt with, so OneMerge doesn’t treat it as a new duplicate:

  • The Matching Job doesn’t create new sets around it. When a new record matches it, OneMerge puts its master in the set instead.
  • Find Duplicates shows it as Merged Into its master, and saves or merges the master in its place.
  • When a set contains a retained duplicate, OneMerge merges the master’s whole group, so new duplicates join the existing group rather than starting a new one.

Recommended setup for Custom Merge

OneMerge stamps every record it keeps with a Match Exclusion value. Use it in two places so Salesforce stops flagging merged records:

  • Duplicate Rules: add the condition “Match Exclusion equals” and leave the value blank, for example Lead: Match Exclusion equals (blank). Merged records are then not checked when they are edited.
  • Matching Rules: add Match Exclusion as an exact match with “Match blank fields” on, so new records aren’t matched against merged ones.
  • Records merged before OneMerge 1.120 don’t carry a Match Exclusion value, so these settings don’t exclude them. OneMerge still handles any set that contains one.

Rolling back

Every merge can be rolled back from its Merge Result. A rollback restores the master’s field values from before that merge. Merges made earlier for the same master are kept.

  • Platform Merge: the merged records can be brought back from the Recycle Bin. Related records move back where you have set up rollback reparenting rules.
  • Custom Merge: the records from that merge are unlinked from the master. If a later merge brought two groups together, rolling it back can restore the second group’s master and relink its records to it.

In short

  • Duplicate Record Sets are how Salesforce groups duplicates. OneMerge resolves them.
  • Platform Merge keeps one record and deletes the rest.
  • Custom Merge keeps every record and links duplicates to their master.
  • Your rules are configured, not coded. Merges can be automated or reviewed, and they can always be rolled back.
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.