How to Choose Which Value Wins in Each Field When You Merge

Keep the right owner, phone number, address and opt-out on every merge, with field-level Merge Rules.

View as Markdown

When duplicates merge, each field keeps one value, or every value on multi-value fields. In Dedupely, field-level Merge Rules decide which one: the Primary Record's value, every value (Append, on multi-value fields), or the value from the record that passes your own Win and Lose Rules. Dedupely also suggests rules for the fields it recognizes, so most of the work is applying a suggestion, checking it in the Merge Preview tab, and saving.

What are the options for each field?

The options depend on the type of field:

Type of field Options (default first)
Single-value fields Primary or Custom
Multi-value fields Append, Only Primary or Custom
Owner (user) fields Primary or active, Primary or Custom
Single-value email, phone, person name or company name fields Primary, Best email / phone / name, Primary or best email / phone / name, or Custom

What each one keeps:

  • Primary: the Primary Record's value. If it's blank there, the value comes from the first duplicate that has one.
  • Append: every value from every record, without repeats. Nothing is lost.
  • Only Primary: only the Primary Record's values. The duplicates' values are dropped.
  • Primary or active: the Primary Record's owner, unless that user is deactivated, so the record isn't left with an inactive owner.
  • Best email: the best-written email of all the records. From best to worst: a work email (maya.okafor@brightline.io), a free email (gmail.com, outlook.com), a shared inbox (info@, sales@), a disposable email, a placeholder (test@test.com), a domain that can't be reached (gmail.con), and an invalid format. On a tie, the Primary Record's email stays.
  • Primary or best email: the Primary Record's email, unless it's blank, invalid, a placeholder, disposable or on a domain that can't be reached. Then the best of the others wins. A free email or a shared inbox on the Primary Record stays.
  • Best phone: the best-written phone number of all the records. From best to worst: a direct number (any normal, complete number, mobile or landline), a toll-free or service number (800, 900 and similar), an incomplete number (7 digits with no area or country code), an invalid number (fewer than 7 or more than 15 digits, or text that isn't a number), and a placeholder (repeated digits like 000-000-0000, sequences like 1234567, US 555 numbers and fictional ranges). On a tie, the number with a country code written in (+52, 00, 011) wins, then the Primary Record's. Extensions, labels like "(work)" and formatting don't change the ranking.
  • Primary or best phone: the Primary Record's number, unless it's blank, invalid or a placeholder. Then the best of the others wins. A toll-free or incomplete number on the Primary Record stays.
  • Custom: the value from the record that passes your Win and Lose Rules.

Best and Primary or best only look at how a value is written: they don't know if an email bounced or a number is still in use. They never show on multi-value fields, because keeping one value would drop the others. A few fields can't be edited and only show a note, like Oldest Create Date on Create Date in HubSpot. Rules can't be set on read-only fields.

Step 1: Apply the suggested rules

Open Merge Rules and pick the Record Type. Fields Dedupely recognizes show a rule labeled SUGGESTED, with a one-line reason. Some of them:

Field Suggested rule
Owner Primary or active
Email opt-out, Do not call or Do not contact checkbox Checked wins
Consent or subscription status dropdown Most restrictive status wins
City, state, postal code, country From the record with a street, which keeps every address part from the same record, so addresses stay valid. City shows Proper case wins ("New York" over "NEW YORK") instead when there's no street field
Description or bio Longest wins
Lead status From the most recently worked record
Lead source or original source From the oldest record
"First…" dates / "Last…" dates Oldest wins / Newest wins
Revenue, number of employees Highest wins

Click Apply on a suggestion, or Dismiss if it doesn't fit. Applying turns the field to Custom with a regular Win Rule you can edit. Undo works until you save. A field shows one suggestion at most, and only while it's on its default option.

Step 2: Write your own rules where you need them

For any other field, choose Custom and add rules. Each rule has a When field, an Operator and In Duplicate Search (all searches, or just one). Lose Rules run first, then Win Rules from top to bottom.

  • Keep the newest phone number: Phone Number → Custom → Win Rule, When field Create Date, is newest.
  • Never lose an opt-out: Do not call → Custom → Win Rule on that same field, is checked. If any record in the match has it checked, the checked value wins, even when the Primary Record has it unchecked.
  • Keep the strictest consent status: on a dropdown, a Win Rule with is equal to and the opted-out option. With several options, the first one listed has priority.
  • Stop a bounced email from winning: a Lose Rule on your email status field, is equal to Bounced.
  • Skip placeholder phone numbers: a Lose Rule on the phone field, is a placeholder.

Step 3: Check the result before you save

Open the Merge Preview tab at the bottom of the Merge Rules page. It shows real matches with your rules, including changes you haven't saved yet: the Primary Record is labeled, and the winning values are in bold. Move between matches with the arrows. When it looks right, click Save.

In your Duplicate Search, the winning values are in bold too, and View Match Details shows the full Merge Preview.

Step 4: Handle one-off cases by hand

For a match where the rules don't fit, use Custom Merge: open the match, pick the winning value field by field, or click the pencil icon to type a value. Merge History labels it "Edited by hand". Custom Merge is the only merge that doesn't follow your Merge Rules.

Example setup

A sales team merges duplicate HubSpot contacts and wants to keep the right owner, the newest phone number and every opt-out.

  • Primary Record: Last Updated Record.
  • Field rules: Contact owner left on Primary or active, the default, and suggestions applied for Do not call on Checked wins, marketing status on Most restrictive status wins, City, State and Postal Code on From the record with a street.
  • Custom: Phone Number with a Win Rule on Create Date, is newest, and a Lose Rule, is a placeholder.
  • Check: ten matches in the Merge Preview tab, then save.

Common mistakes

  • Leaving every field on Primary. The record you keep doesn't always have the best value in every field. Apply the suggestions.
  • Letting an opt-out disappear. Set opt-out fields to Checked wins, so a merge never turns one off.
  • Mixing address parts from different records. Keep city, state, postal code and country from the record with a street.
  • Saving without checking. The Merge Preview tab shows unsaved changes, so test there first.

FAQs about field-level Merge Rules

  • Can I choose which value wins in each field when merging? Yes. Pick an option for each field in Merge Rules, like Primary, Custom, Append or Best email, depending on the field, or apply the rule Dedupely suggests.
  • Do blank values overwrite data when records merge? No. Blank fields never overwrite existing data.
  • Can I keep every email address when merging? On multi-value fields, yes, with Append. Single email and phone fields in a CRM can't be appended.
  • How do I make sure an opt-out always wins? Set the field to Custom with a Win Rule on that same field, is checked, or apply the Checked wins suggestion.
  • Can a rule apply to one Duplicate Search only? Yes. Choose that search under In Duplicate Search.
  • Does Auto Merge use my field rules? Yes. Every merge follows your Merge Rules, except Custom Merge.

Next up

Merge Rules: Choose Which Field Values Survive a Merge Every Merge Rules setting and operator.

Still stuck?

Our team helps on every plan and during the free trial, by chat, email or Zoom.

Portrait of Gaby Salinas

Behind the article

Gaby Salinas

Marketing Assistant at Dedupely

Gaby Salinas came to CRM data from marketing and advertising, so she looks at duplicates from two sides: the match and merge logic behind them, and what they do to the people using the CRM, like the rep who calls a customer twice, the admin who gets blamed and the cleanup nobody wants to start.

As Marketing Assistant at Dedupely, she follows how RevOps teams, end users, consultants and technical teams actually work with their data: the records they stop trusting, the workarounds they build and the moment they finally decide to clean up. What she finds shapes most of what Dedupely publishes.

Connect with Gaby on LinkedIn

Get started for free

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

Try for freeTalk to sales
Or sign up with Google
  • "Superior deduping logic with excellent support - highly recommend for cleaning up messy HubSpot records."

    M Weppner

Running CRM cleanup for clients? See the Partner Program