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
B2AB2A 

How to access parent field's related list in visualforce email template

I have an email template that is related to Opportunity.  The opportunity has a lookup field to Accounts and the Account has a related list called Contact Roles (AccountContactRoles??).  I would like to get the contact that has a role "Executive Sponsor" to show on this email template.  Help would be great.

 

 

 

Thanks,

 

blombardisblombardis

Hi B2A,

 

I found a resolved post searching in Discussion boards that maybe can help you.

 

http://community.salesforce.com/t5/Visualforce-Development/VisualForce-Email-Template-How-to-Display-Related-List/m-p/137882

 

It's really useful to use the internal search to find similar posts.

 

Let me know if you can resolve your problem.

 

Bruno