Hi All,
I am implementing simple scenario:
Scenario : Display Contact and Case detail over mail using Visualforce Classic Email template type
<messaging:emailTemplate relatedToType="Case"
recipientType="Contact"
subject="Complaint No : {!relatedTo.CaseNumber} - {!relatedTo.Subject}">
<messaging:htmlEmailBody >
<html>
<head>
</head>
<body>
Contact Name : {!recipient.FirstName} <br/>
Contact LastName: {!recipient.LastName}<br/>
Contact Email: {!recipient.Email}<br/>
Case status: {!relatedTo.Status}<br/>
Case subject: {!relatedTo.Subject}<br/>
Case Contact Name: {!relatedTo.ContactId}<br/>
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Outcome :
Case details are displaying correctly but Contact details are not displaying.
Please suggest some idea
#Service Cloud #Salesforce #TrailblazerCommunity #Automation
Hi Kermit,
It did sort out but with below
{!relatedTo.Contact.Name} or {!relatedTo.Contact.FirstName}
Thanks @Samyak Wahane for some Hint