+ 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.