Content body in the email template is not showing

Abhilasha G T
Tera Contributor

Hi Team,

i have created the one notification and attached/added a email template which is having some fields and, in the notification, having some message in the body also (what it will contains)

 

only message in the body (what it will contains) is coming , but not the template inside content why?

 

How to achieve it.

 

Regards,

Abhilasha G T

 

11 REPLIES 11

Abhilasha G T
Tera Contributor

Hi Everyone,

please find the screenshots below ,

AbhilashaGT_1-1752147590626.png

 

 

AbhilashaGT_2-1752147606685.png

Regards,

Abhilasha G T

 

@Abhilasha G T 

so you are calling email script from that email template or email body?

share the complete details

Notification screenshot, email script screenshots, email template screenshots.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,
Email Template Not Rendering When Notification Body Is Filled

I'm working with email notifications in ServiceNow and have run into a behavior I can't find documented anywhere.

I have a notification on the sysapproval_approver table that uses a shared email template (also based on the same table). However, when I include content in the "What it will contain" (Message HTML) field of the notification, the attached email template does not render at all — even if I try to include ${email.template} or ${mail_script:...} in the body.

If I clear the message body, the template renders correctly. But I need to include a custom message in the notification body and still use the shared template (which is used in multiple other notifications).

I’ve tried:

  • Using ${email.template} in the body — doesn’t work.
  • Calling a mail script that renders the template — doesn’t work.
  • Confirmed that the template and notification are on the same table.
  • Confirmed that the mail script works when used directly in a template.

Is this a known limitation? Has anyone found a workaround that allows combining a custom message in the notification body and rendering a shared template?

Thanks in advance!

@Abhilasha G T 

if you are using email template field then content & subject will be rendered using that and it won't pick Message HTML content.

If you want to have dynamic content then use email script either from template or from message HTML

AnkurBawiskar_0-1752162543177.png

 

This is also confirmed earlier by ServiceNow employee

AnkurBawiskar_1-1752162614683.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Abhilasha G T 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader