[SalesForce] In HTML Email Template lookup field showing Name field of the related lookup object, how can I get Id instead

I have two objects Parent and Child, I have created email alert on child with HTML email template, I have to send the link of site page in that mail template with URL parameter as Id of Parent, but when I used merge field as {!Child__c.Parent__c} it is populating value from Name field on Parent Record. How can I get Id instead?

Best Answer

You need {!Child__c.ParentId__c} to get the ID of the field.

Related Topic