Tag Master and Excluded Records for Merging during Import

Use the Magical Import module to write master-record and exclusion decisions from a CSV into the Deduplication Exclude and Deduplication Master custom fields on existing CRM records. The Merge Duplicates module then uses those fields to decide which records to merge and which record to keep as the master.

header-tag-master-import-csv.png

In the Magical Import module, you can import a CSV that tags existing CRM records as the master of a duplicate group or as excluded from merging. Magical Import only does the tagging. Identifying duplicates, setting merge rules, and running the merge all happen in the Merge Duplicates module. Because the records already exist in your CRM, the import updates them rather than creating new ones.

For the complete process, including creating and editing the CSV, creating the custom fields, and configuring the merge, see Choosing Which Records to Merge Using a CSV (Method B: Merge Using Custom CRM Fields).

What to Prepare Before Opening Magical Import

Before you use the Magical Import module for tagging, you need three things in place. Method B: Merge Using Custom CRM Fields of the Merge Duplicates article explains how to build each one.

  • A CSV with three columns: Record ID, Deduplication Exclude, and Deduplication Master. Enter TRUE in Deduplication Exclude for any row to exclude from the merge, and TRUE in Deduplication Master for the row to keep as the master in a duplicate group.
  • Two custom CRM fields: Deduplication Exclude (deduplication_exclude) and Deduplication Master (deduplication_master), each a Boolean or Checkbox field.
  • Sync recent CRM changes: In Insycle, go to Settings > Sync Status and click the Sync changes from last day button (lightning bolt icon) next to the account name so the new fields are available.
merge-duplicates-hubspot-contacts-csv-only-record-id-exclude-master-cols.png.png

The image above shows a CSV file in a spreadsheet application with three columns: Record ID, Deduplication Exclude, and Deduplication Master. The Deduplication Exclude and Deduplication Master headers are highlighted in yellow. Six rows are listed: record 61301 has TRUE in Deduplication Master; records 87051, 87001, and 90501 have TRUE in Deduplication Exclude; and records 61201 and 61251 have no values in either column.

Tagging Records With Your CSV in Magical Import

In the Magical Import module, the Data Mapping step connects your CSV columns to the custom fields, and the Matching Criteria identify which CRM record each row updates.

  Important: The import has no preview step. Once you click Import and confirm, the changes are applied to your CRM immediately. 

  1. In the Magical Import module, open the saved CSV.
  2. Click the Data Mapping heading to expand it.
  3. Map the CRM ID field to the Record ID column in your CSV. The two custom Deduplication fields map automatically.
  4. Select the ID field as the Matching Criteria.

    magical-import-contacts-mapping-deduplication-exclude+master-criteria-record-id.png

    The image above shows the Data Mapping section of the Magical Import module, with the Matching tab selected. The CSV columns Record ID, Email, Deduplication Exclude, and Deduplication Master are mapped to HubSpot fields of the same names, each with Field Logic set to Update. Under Matching Criteria, the Matching Fields dropdown is set to Record ID, with icons to add another rule and duplicate the current one.

  5. At the bottom of the page, under Action, select Only update existing as the Records Mode.
  6. Click Import. 

    magical-import-hubspot-contacts-action-import-only-update-existing-646w.png

    The image above shows the “Action to take with the CSV” section of the Magical Import module, with the Import tab selected. The Records Mode is set to Only update existing, and the other options are Update existing and create net new, and Only create net new. Add to List is empty, Email CSV report to user is checked, and the yellow button reads Import 10 Contacts.

  7. After the import completes, review the outcome as described in Understanding Magical Import Results.

Using the Tags in the Merge Duplicates Module

After the import completes and you've reviewed the result, you can run the merge operation on your CRM. See Choosing Which Records to Merge Using a CSV for the full steps.

  1. Open the Merge Duplicates module. 
  2. Under 1. Find Duplicates, set up a filter on the new Deduplication Exclude field, 
  3. Under 3. Merge Logic, set up the Deduplication Master rule. 
merge-duplicates-step-3-master-tab-deduplication-master-record-is-true-700w.png

The image above shows the Master tab of the 3. Merge Logic step in the Merge Duplicates module, with Bulk selected. One rule is set: the Deduplication Master Record field, the condition “is,” and the value True. Processing is set to By Priority, and Exclusions is set to duplicate groups with more than 5 records per group. Rule and Clear buttons appear below the rule.

Additional Resources