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
VairavVairav 

How to display hyperlink in email template

Requirment is : I need to send an email alert which should have a link to the Account.

I have created a email alert (email Template Type is Text) on a custom Object whose parent is Account. When the user clicks on the link in his mail, should take him to the account.

  My Code in email Template is:

             'The Account Message can be found on the Account here <a href = https://domain.com/' +CustomObject.Account__c + ' > CustomObject.Account__c </a>.

I trid this also

   'The Account Message can be found on the Account here <a href = https://domain.com/' +CustomObject.Account__r.Name + ' > CustomObject.Account__r.Name </a>.

  

 

My Problems is:  Account Name(CustomObject.Account__r.Name) is not displayed with the hyperLink.

 

can anyone help. Thanks in advance

 

Syed ishaqSyed ishaq

Use email template type as HTML rather than text to work .

Rahul_sgRahul_sg
try this
<a href = https://domain.com/' +{!CustomObject.Account__c}+ ' > {!CustomObject.Account__r.Name} </a>.
VairavVairav

Hi,

I created a new email Template (HTML type). and have given The Account Message can be found on the Account here <a href = domain/' +{!CusomObject.Account__c}+ ' > {!Custom Object.Account__r.Name} </a>. Still i am not able to see the link under account name. It displays me the whole <a> </a> tag.

 

Kindly help me.