+ Start a Discussion

Mail Merge using Apex

Is it possible to use mail merge functionality (MS-Word)  using Apex.

I would like to keep the template in documents folder and then using Apex would like to fill the data and generate the document.


Code example would be quite helpful.


Were you able to figure this one out? I have a similar requirement. Would really appreciate it if you could get back to me.