function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DaveLPDaveLP 

Adding new fields to Duplicate Lead

Question: How do I add new fields to the Duplicate Search list for Leads? I have a custom field called "Account ID #" I want to add this field to the default listing within Duplicate Search for Leads. Advise? Thanks.
aalbertaalbert

To solve this, you could write your own "Find Duplicate" logic by overriding the standard "find duplicates" button on the Lead object, and then use both Visualforce and Apex to enforce your custom logic.

 

 

 

Adrian-EAdrian-E
aalbert, Do you know if there are any drafts of such a tool in the salesforce cookbook?
aalbertaalbert

A quick search of "Lead dedupe" in the Developer.force.com search window found this code sample:

http://wiki.apexdevnet.com/index.php/LeadDuplicatePreventer.apex