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
ahsensaeedahsensaeed 

How to use Custom Fields in Email Template or MailMergs docs

I want to use my custom fields in Email Template or in Mail Merge Document.
I have created custom objects and their relationship one is compain and second is Compaing_Products and Relation is one-to-many.
Now i want to use Email template to send emails for a compain with its all products but i did't find the way to use custom fields in Email Templates.
 
Plz guide me how can i do this task.
 
Thanx in Advance.
Greg HGreg H
Drop the double underscore c (__c) from the end of your custom object name and custom field name.  Use curly brackets and an exclamation point ({!}) to surround the text and connect the object with the field name using an underscore (_).
 
For example: if your custom object is Custom_Object__c and your field is Custom_Field__c, you would need to have the merge field as {!Custom_Object_Custom_Field}
 
Hope this helps,
-greg