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

Mail Merge template population using Apex

Is it possible to read the Mail Merge template through Apex and populate with SF custom object data?

Code samples will be a great help.

sachin sharmasachin sharma



I also need to do something like this. I want to use subject and body of email templates associate it with some custom object and merge the fields of that custom object with the template.


Anybody has come through this kind of situation, please let me know.




Live agent integrationLive agent integration


Even i am also having the same requirement, Reading the mail merge template and i need to populate the merge fields with salesforce data

Still searchin, but could not get the solution.Can any one help me on this??


I am also in the same situation.  Has anyone found anything?

Ganesh HegdeGanesh Hegde
Hi Salesforce,

Can you please give suggestion for this requirement.. Many people are looking for this