+ 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?
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