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
hramanihramani 

DISPLAY AN APPROVAL COMMENT ON A VF TEMPLATE

I want to display the Approval or Rejection Comment on the VF email template.

Can someone help me how to do that WITHOUT CHANGING THE relatedToType="ahm__Interaction__c"


Below is my code.

<messaging:emailTemplate subject="Action Required: Speaker Alliance Request {!relatedTo.name} has been approved" recipientType="User" relatedToType="ahm__Interaction__c"> <messaging:plainTextEmailBody >
Dear {!relatedTo.Owner.FirstName} {!relatedTo.Owner.LastName},

Your Interaction request {!relatedTo.name} has been approved by {!relatedTo.ahm__Owner_s_Manager_Name__c}. You will receive an email from your assigned meeting planner within 1 business day. 

Interaction Details
<c:InteractionDetailComponent InteractionId="{!relatedTo.Id}" />

If you have any questions or require further assistance, please contact AHM at {!$Setup.Customer_Service__c.Phone_Number__c}.

Thank You,
Mangement

</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Hanimi ReddyHanimi Reddy
https://help.salesforce.com/HTViewSolution?id=000004192&language=en_US

If this solve your issue mark it as best answer.