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
Rocio VivancoRocio Vivanco 

How to display related list of a lookup for the RelatedToType object in a Visualforce email template?

Hi all,

I am trying to build an email template, where I can diaplay information about three objects:

- Opportunity has a lookup to Account
- Account has a Contacts related list

What I want is to show:

- Opportunity.Name : it is possible
- Account data: it is possible
- Contacts data: not possible?

The RelatedToType would be Opportunity, so when the opportunity has change in the stage, this should fire an automatic email, the content in the email template.

Does anybody know if this can be handled in an email template?
EGA FuturaEGA Futura