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
Nandan NarasappaNandan Narasappa 

Duplicate records not displayed in Visualforce : Duplicate Management

After setting up Duplicate Management, did a test from a standard edit page which worked perfectly displaying error message as well as duplicate records but when tested from Visualforce page only error message "You're creating a duplicate record. We recommend you use an existing record instead." was displayed but no duplicate records. Did anyone face the same issue or is it a limitation ?
Best Answer chosen by Nandan Narasappa
ShashankShashank (Salesforce Developers) 
You should be using the duplicateresult class to display the duplicate records on a VF page. This doc contains a sample: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Datacloud_DuplicateResult.htm

All Answers

ShashankShashank (Salesforce Developers) 
You should be using the duplicateresult class to display the duplicate records on a VF page. This doc contains a sample: https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_class_Datacloud_DuplicateResult.htm
This was selected as the best answer
Nandan NarasappaNandan Narasappa
I somehow missed this class :(  Thanks Shashank for sharing it... :)