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
DannyK89DannyK89 

Email Template Question

I am creating an email template. I would like the email template to show the first name of a contact attached to a custom object I build. I have tried this: {!Object__c.Contact__c.FirstName} but it shows up as a blank on the email. Is it possible to show just the first name of the contact related to the custom object. Thank. 

Best Answer chosen by Admin (Salesforce Developers) 
DannyK89DannyK89

I tried that and it didn't work for me. 

 

I have decided to go with a visualforce email template. I was able to get what I needed that way. Thanks for the help. 

All Answers

CaitlinMCaitlinM

It might work if you just do {!Contact__c.FirstName}.

 

If not, one workaround is to make a formula field on the custom object (Contact__r.FirstName), but leave it off the page layout and only use it in your template. 

DannyK89DannyK89

I tried that and it didn't work for me. 

 

I have decided to go with a visualforce email template. I was able to get what I needed that way. Thanks for the help. 

This was selected as the best answer