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
Hariom KankerwalHariom Kankerwal 

Adding link to a related record in HTML Email template

I'm trying to add a detail link to an HTML Email template, to link to a related record on the object being merged into the e-mail.
I am aware of the process for adding a link/detail link for the object in the template by using
{!Communication__c.Link}
But my Communication object has a lookup to a Case called ParentId__c (which I can be sure is not null..) and I want to link to THIS object... my initial thought was to use
{!Communication__c.ParentId__r.Link}
and it would traverse the relationship, and then merge out the Link value as with other objects, but this has not worked.
PriyaPriya (Salesforce Developers) 

Hi 

 

Kindly check this link that matches your requirement :-

https://salesforce.stackexchange.com/questions/33035/adding-link-to-a-related-record-in-html-email-template

regards,

Priya Ranjan

Ravanakol BaluRavanakol Balu
If you want to link the Parent Record Link Account From the Contact HTML Email Template.
 
<a href={!MID(Account.Link, 1, LEN(Account.Link)-15)}{!Account.Id}}>{!Account.Name}</a>.