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
S2S2 

How to get the lookup field value using visualforce email template

Hi ,

 

I have one custom object which has lookup to standard object Opportunity and i want to display the opportunity id and name in email template and my relatedToType is custom object . I gave {!relatedTo.opportunity__r.id} and {!relatedTo.opportunity__r.name} but i am not getting the id and name values of opportunity object.

 

Please let me know if any one worked on the same requirement .

 

Thank you in advance