Setup Matching and Duplicate Rules in Salesforce
- To identify and analyze duplicates manually, you can activate a DQE manual deduplication rule that will override the standard Salesforce Potential Duplicates component.
- To activate a manual deduplication rule:
Run a deduplication process on the object you want to analyze (Lead/Account/Contact).
This generates the DQE custom fields. To create manual rules:
- In Setup, Search for and Select Matching Rules.
- Click on New Rule > Select the object > Click on Next
- Provide a free-form Rule Name (e.g. DQE Dedupe [Object] Rule)
- The Unique Name will be generated automatically when you leave the field.
- In the Matching Criteria area, select DQE Index Group ID field.
- In Matching Method select Exact
- Click on Save
- Activate the new Matching Rule on the main screen.
In Setup, Search for and select Duplicate Rules.
- Click on New Rule and select the object on which you created the Matching Rule.
-
In the Rule Name field, enter a free-form name for the rule.
-
Ignore fields Action On Create, Action On Edit and Compare [Object] With
-
In the Matching Rule field, choose the matching rule you created previously.
-
Click on Add Rule.
Setup button a listview
Salesforce offers many standard buttons for list views, including many Mass Quick Actions. For example, on a "Leads" list view, the "Change Owner" and "Change Status" buttons are available.
You can also create your own custom list view buttons and add them to list views when your button uses the "List Button" display type.
The following example describes how to add a “Manual Merge” or "Manual Unmerge" button to an Account list view.
From Setup, type Object Manager in the Quick Find or select it from the Setup Menu.
- Select the Account object.
- Select Buttons, Links, and Actions
- Select New Button or Link from the upper right.
Provide a label for your custom button such as “Manual Merge”.
The Name field will populate automatically.
For the Display Type, select List Button and toggle on Display Checkboxes (for Multi-Record Selection).
The Behavior should be set to Display in existing window with sidebar
The Content Source should be set to URL
In the Formula Editor:
- Set Select Field Type to Account and enter the following text for "merge" in the editor:
/flow/dqeone/manual_duplicate_flow
- Set Select Field Type to Account and enter the following text for "unmerge" in the editor:
/flow/dqeone/manual_unmerge_duplicate_flow
Your New Button or Link page should look like this:
- Save your Custom Button
- From the Object Manager | Account page, select List View Button Layout from the left pane.
- On the right side, click the drop-down button and select Edit
- Select or deselect any of the Standard Buttons to display on your List View
In the Custom Buttons section, select your newly created Custom Button and press the arrow key to move it to the Selected Buttons.
- Save your Account List View
Upon completion of running a Process for the select object, Accounts in this example, you will see a “Manual Merge” button on the right side.
To use this new button, see Performing a Manual Merge Using a Custom Button
Related to