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
moniquemonique 

email message fields in custom html template give no result


Hi all,

I am creating several custom templates in html, and I want to put some email message fields in the template. But they give no result! I use these:

From: {!EmailMessage.FromAddress} <br>
Date: {!EmailMessage.MessageDate} <br>
To: {!EmailMessage.ToAddress} <br>
Subject: {!EmailMessage.Subject} <br>
<br>
{!EmailMessage.TextBody} <br>
</p>
</html>


Please help!

Thanks for all your help.
 
SonamSonam (Salesforce Developers) 
Ok So you are trying to get these fields in the body of the email you are sending?
moniquemonique
That is correct. These are used in the reply we send the customer. In the template we want to send the customer also the email they send to us and the date they send it. So they know what their original email was on which we respond.
moniquemonique
Nobody????