Email Template not being applied on Compose Email window in Workspace view

Kawshal29
Tera Expert

Hello , 

 

I have a requirement in which on compose email window, user should be able to select the template. When user selects the template that template will be applied to his email.

 

For this we are using the oob functionality of servicenow that enables users to select the template in the workspace. 

 

I have referred this doc which explains how to select the template. I want this development on Case table so I created new template for case table referring this doc. But when I am selecting the template and sending the email. The email is not using the template as the template is not being applied.  It is showing simple text message.

 

I need to know how to apply the email template to the email so that when email is sent and I preview it, i will be able to see that email is using selected template.

 

Thank you.

 

 

Email Preview :

Kawshal29_0-1754575903820.png

 

@Ankur Bawiskar @Mark Roethof @laszlobolya @SanjivMeher @Michael Jones @Xavier Cordero @Sandeep Kumar6 

1 ACCEPTED SOLUTION

Kawshal29
Tera Expert

Hello,

 

It's working now. There was some mistake in my source code of the templates. I have added "${NOTIF_UNSUB} | ${NOTIF_PREFS}" in my source code because of which the template body was not being populated in the email message. When I removed that from my code, email body started populating.

 

Kawshal29_0-1754643064275.png

 

Thank you.

KS

 

View solution in original post

1 REPLY 1

Kawshal29
Tera Expert

Hello,

 

It's working now. There was some mistake in my source code of the templates. I have added "${NOTIF_UNSUB} | ${NOTIF_PREFS}" in my source code because of which the template body was not being populated in the email message. When I removed that from my code, email body started populating.

 

Kawshal29_0-1754643064275.png

 

Thank you.

KS