AutoMerge settings reference
AutoMerge keeps its settings in the AutoMerge Settings table in your org. This page lists every setting you can change, what values it takes, and what it does.
Where the settings live
Two kinds of record in the AutoMerge Settings table hold settings, written as JSON in the Field List column:
- One Other Settings record (List Type "Other Settings", Name
OtherSettings), with the settings that apply to every table. - One Table Settings record per table (List Type "Table Settings", Name = the table's logical name, such as
contact,accountorlead), with that table's settings for the Duplicate Sets page and the Potential Duplicates widget. - Any number of Key Conflict Rule records (List Type "Key Conflict Rule", Name = a related table's logical name), one for each related table whose alternate key can make a merge fail. See Key Conflict Rules.
A few things apply to both:
- The first setting in each record,
"documentation", links to this page. It changes nothing. - A setting that's left out uses its default.
- The AutoMerge Settings form checks the JSON when you save. JSON it can't read isn't saved. An unknown setting name, or a value of the wrong kind, shows a warning.
- You can add your own notes as extra settings whose names end in
-comment, such as"dspSetCount-comment": "Set by Sales Ops, 2026". AutoMerge ignores them.
Setting names are case-sensitive: type them exactly as shown.
Other Settings
One record for your whole org.
| Setting | Values | Default | What it does |
|---|---|---|---|
ribbonProgressBar | true / false | false | true: when records are AutoMerged from a view's AutoMerge button, a progress window shows each set as it's merged. false: they're merged without the window. |
feedback | true / false | true | true shows "Send feedback" on the Duplicate Sets page and in the widget's help. false hides it. |
testMode | true / false | false | true: AutoMerge checks each merge but changes no records, and shows a "Test Mode Success" message instead. |
Table Settings
One record per table. The same settings apply to every table.
| Setting | Values | Default | What it does |
|---|---|---|---|
expandByDefault | true / false | true | Whether the sets are open (expanded) when the Duplicate Sets page opens. |
dspSetCount | 10, 25, 50, 100, 250 or 500 | 25 | How many sets the page shows per page when it opens. |
dspRowsPerSet | A whole number, 2 or more | 4 | The usual number of records in a set. The page's first query asks for (sets per page × this number) rows. |
dspMinimumPrecisionSet | 0 to 100 | 0 | The lowest match precision (%) of a set that users can show, and so merge, on the page. Users can't go below it. 0 allows every set. |
dspMaxSetsAtATime | 1 to 4 | 4 | The most sets "AutoMerge selected" may merge at the same time. Users choose up to this number in "Merge # sets at a time" (2 at first). Each set being merged keeps the server busy, and Dataverse limits how busy one user can keep it, so 3 is safer for long runs. 1 hides the choice. |
confirmBeforeMergingMultipleSets | true / false | true | Ask before "AutoMerge selected" merges two or more sets. |
confirmBeforeMergingSingleSet | true / false | false | Ask before AutoMerging one set (with the AutoMerge icon, or with "AutoMerge selected" when one set is checked). |
dragAndDropOntoValue | "ask", "replace" or "swap" | "ask" | What happens when a dragged value is dropped onto a value that's already there. "ask" offers Replace (Clear, for an empty dragged value), Swap or Cancel. "replace" and "swap" do that right away. A value dropped onto an empty value is always copied. |
useDefaultFields | true / false | false | false: the page's columns are those of the view it was opened from. true: the columns are the ones in fieldList. |
fieldList | A list of columns | None | Each column is ["Label", "field logical name"]. For a date field, a third value can give its format, such as "MM/DD/YYYY". Lookup fields are recognized automatically. Used by the widget, and by the page when useDefaultFields is true. Example: [["First", "firstname"], ["Email", "emailaddress1"]]. |
rowSize | "sm", "md" or "lg" | "md" | Row height: 28 px (compact), 34 px (medium) or 40 px (full height). |
allowAddressBlockSplit | true / false | false | false keeps each address block whole, with all its fields from one record. true lets a field of a block come from another record. |
alternateKeys | Text | "" (blank) | The table's alternate key fields, as logical names separated by commas (for example "emailaddress1,accountnumber"). Before a merge, their values are cleared on the losing records so the winner can take one without a duplicate-key error. They're put back if the merge fails. |
setPrimaryButtonName | Text | "" (blank) | Blank shows the Make winner icon (up arrow). Any text shows a button with that text instead. |
ignoreButtonName | Text | "" (blank) | Blank shows the Ignore icon (red X). Any text shows a button with that text instead. |
autoMergeButtonText | Text | "" (blank) | Blank shows the AutoMerge icon on each winner row. Any text shows a button with that text instead. |
Example: a Table Settings record for Contact (shortened)
{
"documentation": "https://automerge.com/help/settings-reference#table-settings",
"expandByDefault": true,
"dspSetCount": 25,
"useDefaultFields": false,
"fieldList": [
["Rank", "gnb_automergerank"],
["First", "firstname"],
["Last", "lastname"],
["Email", "emailaddress1"]
],
"rowSize": "md"
}
Key Conflict Rules
Available from AutoMerge version 9.2.26.1203. One record for each related table that needs one.
What they're for
When a Contact, Account or Lead is merged, Dynamics 365 moves the losing record's related rows to the winner. The platform always does this for these tables, and it can't be changed.
Some related tables have an alternate key (a rule that a combination of column values must be unique) that includes the lookup to the merged record. For example, a Contact Lead Source table might be keyed on Contact + Lead Source, so that a contact can have each lead source only once. If the winner and a losing record both have a row for the same lead source, moving the losing record's row would break the key, and Dynamics fails the whole merge with a duplicate-key error saying a record with those values already exists. This happens with the out-of-the-box Merge too, not only with AutoMerge.
A Key Conflict Rule tells AutoMerge which related table to watch. Just before the rows move, AutoMerge removes the losing record's rows that the winner already has (the same values in the key's columns). Rows that only the losing record has still move to the winner as usual. The merge succeeds, and the winner keeps its own row for each lead source, including its inactive ones.
Key Conflict Rules or alternateKeys? The Table Settings setting alternateKeys is for alternate keys on the merged table itself, such as a unique email address on Contact: those values are cleared on the losing records before the merge. Key Conflict Rules are for alternate keys on a related table, whose rows move to the winner during the merge.
What they cover
- Merges of Contact, Account and Lead, however the merge is started: from AutoMerge (the Duplicate Sets page, the Potential Duplicates widget, a view's AutoMerge button, or an AutoMerge request), from the out-of-the-box Merge, or from any other automation that merges records. Custom tables aren't covered.
- The related table must have its own lookup column to the merged record, such as a custom association table built as a manual many-to-many relationship. Native many-to-many relationships, whose linking tables are hidden, aren't covered.
- Active and inactive rows both count, because the alternate key counts both. A row whose key column is empty can't collide, so it's left alone.
- The rule runs inside the merge: if the merge fails for any other reason, the removed rows come back.
- It's built into the AutoMerge solution, with nothing extra to install, on every license tier. With no rule, nothing changes, and a rule adds little to a merge.
Adding a rule
- In make.powerapps.com, open Tables, then the related table. Under Keys, note the alternate key's columns; under Columns, note their logical names. You need the table's logical name, its lookup column to Contact, Account or Lead, and the key's other columns.
- Create an AutoMerge Settings record (the same table as Other Settings and Table Settings):
- List Type: "Key Conflict Rule"
- Name: the related table's logical name. One active rule per related table.
- Field List: the rule, written as JSON (see the settings below).
- Save. The rule applies from the next merge; there's nothing to publish. To turn a rule off, deactivate its record.
Each rule covers one merged table, set by parentTable. An association table normally belongs to one of Contact, Account or Lead, so it needs one rule.
The rule's settings
| Setting | Required | Values | What it does |
|---|---|---|---|
parentTable | Yes | "contact", "account" or "lead" | The merged table. The rule runs only when records of this table are merged. |
parentLookup | Yes | A column's logical name | The related table's lookup column that points at the merged record. |
matchColumns | Yes | A list of columns' logical names | The alternate key's other columns. A losing record's row conflicts when the winner has a row with the same values in all of them. |
associationTable | No | A table's logical name | The related table. Defaults to the record's Name. |
conflictAction | No | "Delete" or "Park" | "Delete" (the default) deletes the losing record's conflicting row. "Park" keeps the row but deactivates it and clears its lookup, so it stays as a row attached to no record. |
maxConflicts | No | A whole number | The most rows one merge may remove. Default 1000. Above it, the merge fails with a message and nothing is changed. |
name | No | Text | A name for the rule. It appears in error messages. |
keyName | No | Text | The name of the alternate key the rule protects, for your reference. |
_help | No | Anything | Notes for people. AutoMerge ignores it, and any other setting name it doesn't know. |
The Field List must be valid JSON. Comments such as // note aren't allowed in JSON: a rule containing them is skipped. Put notes in _help instead.
Example: a rule for a Contact Lead Source table
{
"name": "Contact lead source",
"parentTable": "contact",
"associationTable": "new_contactleadsource",
"parentLookup": "new_contactid",
"matchColumns": ["new_leadsourceid"],
"keyName": "Contact Lead Source Key",
"conflictAction": "Delete"
}
With this rule, when two contacts that both have the lead source "Trade Show 2026" are merged, the losing contact's "Trade Show 2026" row is deleted, and its other lead source rows move to the winner.
When something is wrong
| What you see | Why, and what to do |
|---|---|
| The merge still fails with the duplicate-key error | The rule was skipped because its JSON can't be read or is missing a required setting. Check the Field List, then merge again. The plug-in trace log (below) has a line saying why the rule was skipped. |
| "AutoMerge key conflict rule '[name]' could not read table '[table]' (lookup '[lookup]', columns '[columns]'). Check the rule's table and column names." | A table or column named in the rule doesn't exist. Correct the logical names in the rule. |
| "AutoMerge key conflict rule '[name]' found [n] conflicting '[table]' rows on the merged record, more than its limit of [max]. Nothing was changed. Raise maxConflicts in the rule, or clean up these rows first." | The merge would remove more rows than maxConflicts allows. Raise it, or clean up those rows first. |
| A message starting "AutoMerge key conflict rules:" | Another error inside a rule. Send the full message to support. |
Seeing what was removed. Each row a rule removes writes a line to the plug-in trace log: the rule, the table, the row, the matching value by name, and the losing and winning records. Dynamics keeps these lines only when Settings > Administration > System Settings > Customization > Enable logging to plug-in trace log is set to All, and deletes them after about a day. They're for troubleshooting with support, not a long-term audit trail.
Need help?
Contact AutoMerge support through your usual channel, or use the support form.
Was this page helpful?