Merge Rules

By configuring custom rules, you can dictate exactly which specific field values are kept (win) or discarded (lose) during a merge, ensuring your most accurate data is always preserved.

View as Markdown

Custom Merge Rules are fully included in all Dedupely plans, as well as the 7-day free trial.

Merge Rules give you complete control over how your records are merged. By establishing a default hierarchy and custom logic, you can tell Dedupely exactly which specific field values are kept or discarded during a merge.

When merging records, all activities (notes, calls, tasks) and associations (linked companies, deals, contacts) are preserved. Dedupely merges this data and never deletes your CRM history.

Configuring the Primary Record

The Primary Record is the one that "wins": it provides the core data whenever no field-level rule applies.

Choose how the Primary is picked:

  • Oldest Record
  • Newest Record
  • Last Updated Record
  • Most Field Data
  • Custom

Configuring Field-Level Merge Rules

You can configure exactly how data is handled on a field-by-field basis under the Common Fields and Other Fields lists.

Merge rules can only be applied to fields that are not marked as read-only in your CRM.

Next to each field, use the dropdown menu to select how data is retained:

  • Primary: The field automatically inherits the value from your designated Primary Record.
  • Only Primary: The system strictly uses the value from the Primary Record, provided that field is not blank on the Primary Record.
  • Append: Designed for multi-value fields (such as multiple email addresses). This combines and retains all unique values from duplicate records rather than overwriting them. Append is not available for single-value fields.
  • Custom: Opens advanced rule builders allowing you to define precise, conditional Win and Lose logic for that specific field.

Building Custom Merge Rules

If you select Custom for a field-level rule, you will configure the following components to determine the exact outcome of the merge:

  • Rule Type: Define whether you are creating a Win Rule (selects the winning value) or a Lose Rule (prevents specific values from winning).
  • When Field: Choose which synced field triggers the condition. This can be the target field itself or any other synced field in your CRM (enabling cross-field logic).
  • Operator: Select the comparison logic to evaluate the data (e.g., is equal to, contains, is proper case, is longest, is blank).
  • Target Terms: Enter the specific value or term required to trigger the condition.
  • Duplicate Search: Apply the rule universally across all searches or restrict it to a specific Duplicate Search.

Example: Custom Merge Rule

If your objective is to ensure the "First Name" from the oldest contact is never kept, configure the custom rule as follows:

  1. Rule Type: Lose Rule
  2. When Field: Create Date
  3. Operator: is oldest
  4. Duplicate Search: All

This ensures the winning name is chosen from a newer record instead. You can stack multiple rules per field to handle various scenarios.

Rule evaluation and fallbacks

Dedupely evaluates your rules in this order:

  • Execution Order: Lose Rules are evaluated before Win Rules to prevent unwanted values from winning, unless no other data exists.
  • Priority: Win Rules are evaluated from top to bottom. You can change their priority sequence by reordering them in your list.
  • The Fallback: If custom Win/Lose conditions are not met by any record in a duplicate set, the system automatically falls back to the value from your designated Primary Record.

Visualizing Merge Rules

Once your rules are created and saved, navigate to your Duplicate Searches to review their impact. You can confirm the exact outcome of your rules in two ways before executing a manual or automated merge:

  1. In-line Preview: Within each duplicate group, the specific field values set to win will appear in bold text directly on the search results page.
  2. Preview Merge Panel: For a comprehensive look at the final resulting record, open the match details window for a specific duplicate group and review the Preview Merge panel.

Default merge behavior

You do not need to set up any custom rules to start merging. Out of the box, Dedupely executes merges using your CRM’s native core functionality. This means the merges happen within your platform, following its exact native logic without bypassing built-in rules.

Usually, when relying on the default behavior:

  • The most recent field values are typically retained.
  • The oldest Record ID is preserved.
  • Blank fields will never overwrite existing data.

Each CRM merges a little differently by default. The native behavior is documented by HubSpot, Pipedrive, or Salesforce.

FAQs about Merge Rules

  • Why is my custom merge rule not applying to a specific field? Check if the target field is marked as read-only in your CRM. Dedupely cannot overwrite or dictate rules for read-only fields.

Mentioned in this article: Duplicate Searches, Merging duplicates, and Merge Safety.

Still stuck?

On this page

Get started for free

20 free trial merges and as much free support as you need to get your duplicates under control.

"The data in our CRM is much cleaner thanks to this App. Easy to use and relatively inexpensive."
H Chitty

H Chitty

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"I do recommend! A++ Pretty easy to use. Adequate reporting. SUPERB CUSTOMER SUCCESS!"
Alina T

Alina T

Sales Operations Specialist, FieldBee

51–100 employees
"Great tool that works as promised. Great customer support - Nestor was super helpful onboarding."

R McNaught

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"It prioritizes merging while keeping key data. Highly recommended for anyone using Pipedrive integration."
John K

John K

Head of Marketing, David J Anderson School of Management

Pipedrive MarketplacePipedrive user
"The app worked great and helped me a lot with hundreds of duplicates in Pipedrive."
Samo J

Samo J

Founder & CSO, TapHome

Pipedrive MarketplacePipedrive user
"Superior deduping logic with excellent support - highly recommend for cleaning up messy HubSpot records."
M Weppner

M Weppner

"Dedupely was incredibly easy to set up, and the support team replied almost instantly each time I reached out. In just a few

Yuliya

Pipedrive User

Pipedrive MarketplacePipedrive Marketplace
"Incredibly effective at tackling massive duplicate data cleanup - exactly what we needed."

D Wright

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"The application works great and [...] their customer support was responsive and helped me get on the right track!"

Shawnee K

Salesforce User

Salesforce AppExchangeSalesforce AppExchange
"Worked as expected and Nestor at Customer support was extremely helpful walking me through some nightmare duplicate issues."

DiBlasio S

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"I was really pleased with Dedupely. It's highly configurable and works well when used manually or for automated deduping."

Laura R

Salesforce User

Salesforce AppExchangeSalesforce AppExchange
"It couldn't have been much easier to connect to HubSpot and run my first dedupe."

Emily K

Mercy Housing

HubSpot MarketplaceHubSpot user
"It did more than I expected. Support is great!"

Paweł S

Pipedrive User

Pipedrive MarketplacePipedrive Marketplace
"Dedupely helped us to quickly de-duplicate hundreds of records, with a level of transparency that gives you confidence..."

Grattan H

Pipedrive User

Pipedrive MarketplacePipedrive Marketplace
"Our customers want to achieve great results fast. Everybody at HubSpot already knows what Dedupely can do..."
Scott B

Scott B

VP Platform Ecosystem, HubSpot

"This tool made a week long project take a few hours. Definitely a go-to for deduplication processes."

Burchard J

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"It took away the huge headache we had of merging over 27,000 duplicate contacts."
Sean B

Sean B

Managing Director, Legal CPD

"Most of all, our team has been impressed by the way the Dedupely Customer Success team consistently goes above and beyond."

Isaac J

Salesforce User

Salesforce AppExchangeSalesforce AppExchange
"Great support. They are on top of things, and answer questions very quickly."

Larry D

Pipedrive User

Pipedrive MarketplacePipedrive Marketplace
"Works really well, support is A++++++"

Andy G

Pipedrive User

Pipedrive MarketplacePipedrive Marketplace
"We had 300k records in our CRM. Despite the large amount, Dedupely was perfect. The support was especially outstanding."
Simon W

Simon W

Tillhub

~50 employees
"Worked very simply and effectively and suited my budget [...] Very happy to recommend a good app and integration."
Allan R

Allan R

Co-founder & Managing Director, Target3D

11–50 employees
"Dedupely was huge in improving the quality of my CRM database. It saved me hours of manual merging."
Marco S

Marco S

Information Systems Manager, Efecte

~200 employees
"Fantastic time saver with great filters - auto and bulk merging made so much easier!"
A Team

A Team

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"It helped us clean up a giant mess of duplicates after migrating to HubSpot from our old CRM."

J Eddie

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"Perfect solution that delivers exactly as promised. Does exactly what we need it to. Great tool."

A Grogan-Crane

HubSpot User

HubSpot MarketplaceHubSpot Marketplace
"In a matter of maybe 30 minutes [...] Dedupely automatically took care of my dupes and merge needs. So happy I found it."

Wasmer D

HubSpot User

HubSpot MarketplaceHubSpot Marketplace

Running CRM cleanup for clients? See the Partner Program

Skip to content