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
Lokeswara ReddyLokeswara Reddy 

Hyper link in addError() method.

Hi All,

I'm working on showing error message if the user try to create an accunt which already exists in the system. 

for(Account acc:duplicateAccounts){
   String recordLink = URL.getSalesforceBaseUrl().toExternalForm() + '/' + acc.Id;
   currentAccount.addError('im an html error with a <a href="http://google.com">link</a>', FALSE);
}

This is how it displayes

Need help in displaying the Link alone in the error message, any help is much appreciated !

Is this the same issue which Salesforce mentioned the issue is fixed?
https://success.salesforce.com/issues_view?id=a1p30000000T4PjAAK
 
Lokeswara ReddyLokeswara Reddy
It seems the issue is with the Data.com clean popup window, the error message shows properly on the details page with proper link but the issue is when we use Data.com Clean and try to sync the data and if there exists a duplicate in the system.
Lokeswara ReddyLokeswara Reddy
Updated this issue with SFDC in one of the existing ideas
https://success.salesforce.com/ideaView?id=08730000000E1lVAAS