1 个回答
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