Detect and Merge Duplicate Companies and Contacts in Lightning Experience

Duplicate data in any system leads to operational inefficiencies. Duplicate rules are used to prevent the duplicate records. In Salesforce classic, if there are any duplicate accounts and contacts, it will display error message only.

Duplicate data in any system leads to operational inefficiencies. Duplicate rules are used to prevent the duplicate records. In Salesforce classic, if there are any duplicate accounts and contacts, it will display error message only. There are options to either allow and block the duplicate records.  However, now we can detect and merge duplicate accounts and contacts in Lightning experience. It helps us maintain good bonding with customers and keep our accounts and contacts clean. If permission is given to merge records in classic, the same could be used in lightning too. This feature is available in Lightning Experience only.

The following steps to be followed to detect merging of duplicate records: 

Step 1:In setup enter App Builder and click Lightning App Builder.

Step 2:Choose record page and select the object which you want.

salesforce merge duplicates

Fig 1: select record page 

Step 3:  Click Potential Duplicates which is used to alert duplicate and select the display options. You can select show toast or show card or show both.

salesforce merge duplicates

Fig 2: select potential duplicate and display options 

Step 4: Save and Activate.

Step 5: Make sure the Duplicate and Matching rules are active. Click View Duplicates to show the duplicate records.

salesforce merge duplicates

Fig 3: View duplicates 

Step 6: We can choose up to three records to merge. Before merging, choose the correct value for each field.

salesforce merge duplicates

Fig 4: select accounts to merge 

When merging, the master record is updated with the values which you have chosen and relationships to other items are moved to the master record.

salesforce merge duplicates

Fig 5: correlate the accounts 

Step 7: Click Merge Accounts to merge the records. Once merged, the record cannot be reverted.

salesforce merge duplicates

Fig 6: Merge Accounts 


When merging, the duplicate records keep these following considerations.

  1. Lightning experience doesn’t support for merging person accounts.
  2. One can choose the master account to establish the hierarchy in lightning, whereas in classic the merged account retains the account hierarchy from the master record.
  3. In Lightning, the contact could be merged with different primary account except for the contact which is associated with a portal user. But in classic the contacts could only be merged with its corresponding primary account.
  4. Salesforce displays a message to remove the redundant relationship when trying to merge contacts that are indirectly related to the same account. On the other hand, in contact records, the indirect relationships are maintained the related account list.


Duplicate management

Guidelines and Considerations

About MST

At MST Solutions our cornerstone is to adapt, engage and create solutions which guarantee the success of our clients. The talent of our team and experiences in varied business verticals gives us an advantage over other competitors.

Recent Articles

Work with us.

Our people aren’t just employees, they are key to the success of our business. We recognize the strengths of each individual and allow them time and resources to further develop those skills, crafting a culture of leaders who are passionate about where they are going within our organization.