Modifying columns in Potential Duplicates Component

I was searching the web for information on how to modify the columns shown in the Potential Duplicates Component, but didn’t find much useful information. Mathias Del Maso finally found out how to do it, so I thought to share this. Thanks, Mathias, for bringing this to my attention.

Out of the box, Salesforce provides your Org with Duplicate Management rules to make sure you aren’t creating duplicate leads, contacts, and/or accounts.

Of course, you can add your own matching rules, but it’s also important that your users see the right fields to actually identify if we are talking about a real duplicate record or not.

In the following scenario, I’m creating a Lead with a different first name but the same last name and email as an already existing Contact in the database. The duplicate management rules detected a potential duplicate and showed me this in the sidebar component:

Potential Duplicates Component

By clicking the “View Duplicates” link in the component, I get the following information and columns of the current lead and the potential duplicate contact:

potential duplicate contact results

How to modify the Potential Duplicates Component results columns?

But let’s say I wanted to add the Postal code of the contact as extra information, and I would like the email address to be shown as a second column. How and where can I change this?

Well, in Lightning Experience, this layout follows the same format as the ‘Search Results’ of the Search Layouts section of the object, in this case, Contact.

Search Results Layout

To change it, navigate to Setup—Object Manager—Contact—Search Layouts and edit the ‘Search Results’ section. I’ll add the Postal code and also re-order so that email comes second:

search results modified

Let’s check what this did to our Potential Duplicates Results window:

potential duplicate contact results new

We can now see that email is the second column and that we added the Postal code as the fourth column.

Be aware, though, that the Search Results layout has an impact in other places also (in contrast to Salesforce Classic, which lets you adapt different layouts individually, like Lookup Dialog results, etc…), so choose your fields and order carefully!

In Lightning, the Search Results impact:

Global Search Results columns:

Global SearchResults

Lookup Dialogue Search Results:

This is the layout you’ll get when populating a lookup for that object, entering a keyword, and hitting enter. For example, I’m searching to relate a primary contact to a quote:

LookupDialogueResults

I hope this clearly explains how to adapt the Potential Duplicates Results Component Columns!

Share:

Facebook
Twitter
Pinterest
LinkedIn

Table of Contents

Continue Reading

Related Posts

Industry Best Practices

Why Ignoring Industry Best Practices Could End Your Consulting Career

Learn why ignoring industry best practices in the consulting industry can have detrimental consequences for your career. From attending conferences and subscribing to industry journals to networking with peers and taking specialized courses, discover the essential steps to stay informed and relevant in your field. Don’t underestimate the importance of industry best practices – they could be the key to securing a successful and thriving consulting career.