How to Configure Duplicate Rule Conditions for Custom Merge

When using Custom Merge in OneMerge, it is important to configure your Salesforce Duplicate Rules correctly. This prevents records that have already been merged from being repeatedly identified as duplicates.

This article explains why additional conditions are required and how to configure them.

Note: These conditions are only required for Merge Rulesets that use the Custom Merge action. They are not required when using Platform Merge.

Why Are Duplicate Rule Conditions Needed?

When OneMerge performs a Custom Merge, the duplicate records are retained rather than deleted. Each duplicate record is linked to the surviving Master Record.

Because these records still exist in Salesforce, they may continue to be identified as duplicates of the Master Record.

If a Salesforce Duplicate Rule has the Report option enabled, editing the Master Record or one of its retained duplicates can cause Salesforce to create another Duplicate Record Set.

This can also happen when OneMerge updates the Master Record during the merge process.

Over time, this can result in multiple Duplicate Record Sets being created for records that have already been merged.

To prevent this, two conditions need to be added to each active Salesforce Duplicate Rule for the relevant object.

How to Configure the Duplicate Rule Conditions

Follow these steps to update your Salesforce Duplicate Rules.

    1. In Salesforce, navigate to Setup.
    2. Search for and select Duplicate Rules.
    3. Locate the Duplicate Rule associated with the object used in your OneMerge Merge Ruleset.
    4. Open the Duplicate Rule for editing.
    5. Under Conditions, add the following two conditions.
Field Operator Value Purpose
The field named in the ruleset’s Is Merge Master Checkbox Field Name (for example, Is Merge Master Record?) equals False Excludes Master Records
The field named in the ruleset’s Master Record Field Name (for example, Master Account) equals (leave blank) Excludes retained duplicates

 

Important: The field names shown above are examples of the fields provided by OneMerge for the Account object.

You must use the field names configured in your Merge Ruleset:

      • Is Merge Master Checkbox Field Name: Identifies whether the record is the Master Record.
      • Master Record Field Name: Identifies whether a retained duplicate is linked to a Master Record.
      1. Set the condition filter logic to 1 AND 2.
      2. Save the Duplicate Rule.
      3. Repeat these steps for every active Duplicate Rule associated with the same Salesforce object.

Both conditions must be met for the Duplicate Rule to apply.

What Happens After Adding These Conditions?

Once the conditions have been configured, Salesforce and OneMerge will handle records that have already been merged differently.

1. Prevents Duplicate Record Sets from Being Recreated

Master Records and their retained duplicates will no longer trigger duplicate reporting or alerts when those records are edited.

This prevents unnecessary Duplicate Record Sets from being created for records that have already been processed.

2. Prevents Previously Merged Records from Being Rechecked

OneMerge’s matching job will no longer check Master Records or retained duplicates for new matches.

New records and records that have not yet been merged will continue to be checked as normal.

These records can still be identified as matches to an existing Master Record or one of its retained duplicates.

3. Adds New Duplicates to Existing Merge Groups

If a new record is identified as a duplicate of a record that has already been merged, OneMerge’s Custom Merge will add it to the existing Master Record’s group.

This ensures that related duplicates remain associated with the same Master Record rather than creating a separate merged group.

What About Platform Merge?

These conditions should not be added to Duplicate Rules when the Merge Ruleset uses Platform Merge.

Unlike Custom Merge, Platform Merge deletes the duplicate records once the merge has been completed.

As a result, the retained duplicate records cannot be reported again.

Adding these conditions unnecessarily could also prevent new duplicates of a Master Record from being reported when the Master Record is edited.

Summary

Configuring the correct Salesforce Duplicate Rule conditions is an important step when using OneMerge Custom Merge.

By excluding Master Records and retained duplicates from further duplicate reporting, you can prevent unnecessary Duplicate Record Sets from being created while allowing new and unmerged records to continue through the matching and merging process.

Remember to apply these conditions to every active Duplicate Rule for the relevant Salesforce object, using the field names configured in your OneMerge Merge Ruleset.

Article last reviewed: 2026-10-27

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.