Cross-object Merge Fields - Do Work in Email Templates!Cross-object Merge Fields - Do Work in Email Templates!Cross-object Merge Fields - Do Work in Email Templates!Cross-object Merge Fields - Do Work in Email Templates!Cross-object Merge Fields - Do Work in Email Templates!Cross-object Merge Fields - Do Work in Email Templates!
[Blog ]
[Blog ]
Quick answer – they do work in VisualForce email templates, but don’t in usual text template. Use this logic:
<messaging:emailTemplate subject="Lightning Email Templates are Rock" recipientType="User" relatedToType="Account" renderUsingSystemContextWithoutSharing="True"> Name : {!relatedto.Object__r.Field__r.Field__c}
I believe the level may be as deeper as you wish, if not please correct me. One note about the parameter renderUsingSystemContextWithoutSharing=”True” please read here Using Visualforce Email Templates with Guest Users.
Blog Categories:
[Hire Salesforce]
[Hire Salesforce]
Are you Small & Medium Businesses and looking to hire full-time for:
Developer, Administrator, Consultant, or Business Analyst?
Don't! Hire me on an hourly basis.
Service
Salesforce Administration
Salesforce Consulting
Salesforce Development
Salesforce Business Analysis
Blog Categories