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
atulit27atulit27 

How to merge fields from two different custom objects in an email template?

I am creating an email template using visualforce, and want to merge fields from two different custom objects which are not related to each other.How can we do that?

Pradeep_NavatarPradeep_Navatar

Create an email template via configuration (setup-> Administrative setup-> communication templates-> Email Templates) and put merge fields for two different custom objects. After that bind that email template either through worklow or apex code.

 

Hope this helps.