Export an email template (Organization administration > Setup > E-mail templates) to a pdf

Hi all,

I have a requirement where I need to attach some beautifully formatted letters as a pdf to an email. Usually I would just attach a pdf for that, but here, we require some placeholders that dynamically pick data up from AX 2012 R3 and send as an email to AX workers.

Since, the letters need headers, bold and what not, I tried to add it to the email template option in AX (Organization administration > Setup > E-mail templates) and I can use and customize placeholders in there, so that works, but I am not able to find a way to save that html text blob as a pdf that I can attach and send using emails.

I tried importing that to SSRS but SSRS only supports handful of html tags so that did not work. I am sure AX supports HTML Tags, so there must be a way to export the data (probably as a pdf?)

Any help will be greatly appreciated.

Many thanks


Dear VB,

I hope your requirement is to export E-mail template along with data after mail sent…?
If it is the case, do like this…
After sending the email generate one update alert in “E mail sending status” form through X++ (Path:- System administration/Area page/Periodic/E-mail processing/E-mail sending status ). From here you can export the delivered Email along with place holders data through Show message → File → Print - *Save as PDF.

The below link may help you to achieve above mentioned.

Best Regards,

Hi Ram,
Thanks for your help. I am afraid, I have to send the email template as pdf, not after mail is sent. But, I will look into this, and maybe, I can find a work around using this. I am thinking of sending it to bla@bla.com and when it fails, get the pdf from the required place and send it as an attachment. Not the best way, but that is the only way I can think of for now.