Skip to main content
Michael Dely ha preguntado en #Collaboration
I am trying to pull a few custom fields into a Visualforce email template.  I have most everything pulling accordingly, with the exception of these three fields.  What should be verbiage to get these to populate when the record has been completed?  Screenshot below.  Thanks, Mike.  

 

Visualforce - Pulling Appropriate Fields into Email Template

 

 
1 respuesta
  1. 2 may 2018, 9:25
    Hi Michael,

     

    I would like to know if Employee_Benefit__c object is related to User? In visualforce email templates, you can show details of the object which you mention in the relatedToType attribute. Please go through the below guild to know more about this.

     

    https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_creating.htm

     

    Now if you want to display details of the object that doesn't have a relationship with User, then you may have to custom controller. Please check below guide to know about this.

     

    https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_email_templates_with_apex.htm

     

    Please let me know if you need more help here. 

     

    Thank you.

     

    Regards,

     

    Shyam Nair