Have a visualforce email template for details on Opportunity closed won - I want to check which fields are being pulled through into the template from the Opportunity record.

Where do I go to find this information as it does not show when going into the email template. Any help will be much appreciated

This is what I am see when I try edit the template enter image description here

  • 3
    Does this answer your question? Field(s) On EmailTemplate To Determine Merged Objects? Sep 5 at 13:57
  • Hi Swetha, don't think it does unfortunately. This is all I am seeing when I try edit the template. Should I be looking elsewhere? an APEX controller? <html> <style type="text/css"> body {font-family: Arial; size: 12pt;} </style> <c:NewSalesOpportunityEmail opportunityId="{!relatedTo.Id}" opportunity="{!relatedTo}"/> </html> </messaging:htmlEmailBody> </messaging:emailTemplate> Sep 6 at 14:35

2 Answers 2


There is no shortcut for this. You will have to edit the record and then look for tags like {!relatedTo.} to figure the fields referenced in the Email Template.

  • Hi Mohith, thanks for coming back to me. That's fine to do but I'm not seeing any of that when I try and edit the template. Is there another section I should be looking at? Sep 6 at 14:24
  • Screenshot may be what you see? Sep 6 at 18:58
  • thanks Mohith, I've added above. Sorry, completely new to this. I can't see in the components either where it refers to any field Sep 13 at 9:27

The answer is in the Visualforce Component called NewSalesOpportunityEmail. All the fields you have in the template will be shown there, or in any child Visualforce Components referenced in that component.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .