Saturday, June 28, 2014

Importance of HTML Template in Template

Recently I have been debugging an issue which is related to incorrect email which is being sent to the end user. Incorrect in the sense that the characters like ' is getting converted into ' in the message body.
This was happening when we are doing a query on BC which contain these templates and fetching the message body.
Now after hours of debugging, we have found out that in the Template Properties under Administration - Communications as can be seen in the screenshot below:


For the issued template, Template Property HTML Template was unmarked. Now the definition of this property as stated in the bookshelf is given as below:
The HTML Template setting affects the text you enter in the Text field. It does not affect template items.

But as they say all the things cannot come from textbook, quite a handful comes from experience. So please ensure to mark HTML Template so that special characters get encoded correctly. 

Hope this little but useful information will prove worth of saving many hours. Happy Learning !!!