Each duplicate set needs a master record designation in order to be merged. There are 2 ways to select a master record, manual and automated.
Manual Master Selection
Double click the pin beside the duplicate record to select it as the master record, turning the pin green .
- Gray pins
indicate no master record has been selected (group will not be merged)
- Green pins
indicate the selected master record
- All fields from the selected master record will "win" when merging
- Red pins
indicate the non-master records
Automated Option: Choose or Design a Master Rule
Master Rules allow for the automated selection of master records for each group in the results grid based on attributes of the records in the duplicate group. DemandTools ships with a number of pre-built master rules for common logic used when selecting master records. These can be used as is or modified as needed.
Users also have the option to create their own master rules based on their specific business needs. Rules can then be applied to the entire results grid at once to determine which record in each group should be selected as the master record.
NOTE: Applying a Master Rule will overwrite manual and custom merge settings.
If manual selections have been made, select "Merged Checked Records" to merge these groups and then apply a master rule to the remaining groups in the results grid. Or:
1. Apply the rule first and then overwrite with manual selections
2. Apply to Unchecked so only groups without a master will have the rule applied
Creating/Applying a Master Rule
Master Rules allow for automated selection of master records for each group in the results grid based on attributes of the records in the duplicate group.
Step 1: Select a Pre-built Rule or Create a Custom Rule
Selecting a Pre-Built Master Rule
DemandTools ships with a number of pre-built master rules for common logic used when selecting master records. These can be used as is or modified as needed.
- Pre-built Master Rules will be displayed in the upper right-hand portion of Step 3 - Results Grid
- Check the desired rule and follow the instructions in Applying a Selected Master Rule
Creation and Editing of Master Rules
Users have the option to create their own master rules based on their specific business needs. The New Rule and Edit Rule buttons can be used to create/modify rules.
- When building a master rule there is the option to add unlimited conditions for analyzing either the record (as a whole) or the field values that the record contains.
- At the record level, options such as oldest, newest, most recently modified, active owner (note that RECORD is the field selection for these options to appear). Constraints will vary based on the table being deduped. For field values, the Single Table Dedupe displays constraints appropriate for the data type of the field being analyzed.
Step 1: Add Condition(s)
- Pick the field to base a condition on
- Any field in that particular table can be used within the rule, including custom fields
- RECORD (as a field name) allows constraint selections based on the "RECORD as a whole"
- Any field in that particular table can be used within the rule, including custom fields
RECORD options
- Oldest/Newest Record
- Based on created date
- Most Recently Modified Record
- Based on last modified date
- Owned By/Not Owned By
- Based on OwnerID
- Active Owner
- Will pick a record owned by an active owner vs. an inactive owner
- Most XX Objects: Can pick any entity to do a real-time count, including custom entities
Can create rules on Accounts for Most Contacts and/or Opportunities using Most XX Objects:
Most Contacts: Most XX Objects: contact_customer_accounts
Most Opportunities: Most XX Objects: opportunity_customer_accounts
After applying either Most Contacts, Most Opportunities, the calculated counts can be displayed in the results grid. Select "Show More Fields" and pick "Calc_contact_customer_accounts_Count", "Calc_opportunity_customer_accounts_Count".
Note: These "fields" are for display only and will only show in this particular results grid. They cannot be saved as fields to always show when running a particular scenario (e.g. selected in Screen 1 of Single Table Dedupe). The counts are NOT saved to the Account record.
- Most Complete Record: Picks the record with the most populated fields
- Select the constraint
- Options will vary based on the type of field selected
- Equals/Does Not Equal, Contains/Does Not Contain, Is Populated/Is Not Populated, Oldest/Newest, Largest/Smallest, Upper Case/Lower Case/Mixed Case, Longest String etc.
- Select the value if applicable
To OR multiple text values use a | (pipe) symbol (vs. a comma) between each value. Detailed information on OR'ing text values in a Master rule can be found in the Validity Community Forum Post Master Rule Condition: Using OR in a condition for multiple text values.
- Select a score for each constraint
- Scores are used to weight the importance of a particular constraint
- A record will receive that score if the criteria is met
- The default rules that ship with the software are based upon a 100 point scoring system but any system can be used
- Negative scores can be applied to penalize a record
- When adding multiple constraints, the record is scored in cumulative fashion with each additional positive expression adding to the total score of the records
- The record with the highest score will be chosen as the master
- A score delta can optionally be added which will determine "how much higher" a score needs to be to become the master, and/or whether or not to pick a master in the event of a tie score or if the score delta is not met (see below for more details on using a score delta)
Step 2: Using the Score Delta
The final component to creating a Master Rule is the decision to use or not to use a score delta. The score delta will be used by the deduper to help determine master vs. non-master records. The value of the score delta determines how many points away a master record has to score from the next nearest non-master record in order to be selected as the master.
Unchecked Checked
When Unchecked (NOT USING A SCORE DELTA)
- The deduper will score the records
- The record with the highest score will be chosen as the master
- In the event of a tie score, the first record in the group will be chosen as the master
When Checked (USING A SCORE DELTA)
- Select the number of points a record needs to score higher than all others to be chosen as the master
- A delta of 1 is the default (when checked) but higher deltas can be chosen (e.g. needs to score higher by 10 points)
- The deduper will ONLY pick a master when one record scores higher by the amount of the chosen delta
- In the event of a tie score (or the delta is not met) a master WILL NOT be selected
- The scores will be displayed, but the pins will remain gray and the boxes, unchecked
Step 3: Rule Name
- Name the Custom Rule and Save
- Master Rules are saved locally on the PC in the DemandToolsMSDData\MasterRules directory
- To share Master Rules with other users this directory can be moved to a shared drive or rules can be emailed to another user and then saved on that users DemandToolsMSDData\MasterRules directory
Step 4: Applying a Selected Master Rule
To apply a master rule, click one of the Current Master Rule options in Grid Control
- All: Applies the selected Master Rule to all records
- Checked: Applies the selected Master Rule to any checked sets
- Unchecked: Applies the selected Master Rule to unchecked sets
With "unchecked" option, users can apply a rule to all, then apply a different rule to any sets that did not have a master selected, or make manual selections for key groups then apply a rule to what's left (the unchecked).
Alternatively, masters records can be selected based on the currently selected master rule in the upper right hand of the interface when the end user selects Merged Checked Records and the merge process will be completed (this option will not allow for master selections to be reviewed before merging, the master selection and merging happen in one step).
If a score delta was used in the selected Master Rule such that not all groups may have had a master selected the results can be displayed by checked or unchecked by selecting the appropriate option in "Grid Display" at the bottom of the results grid:
All master selections should be reviewed carefully to ensure logic worked as expected before executing the merge.
NOTE: Applying a Master Rule "To All" will overwrite manual and custom merge settings.
If manual selections have been made select "Merged Checked Records" to merge these groups and then apply a master rule to the remaining groups in the results grid. Or:
1. Apply the rule first and then overwrite with manual selections
2. Apply to Unchecked so only groups without a master will have the rule applied