Is it possible to include HTML in a Workflow Notification Activity

ron_tavares
ServiceNow Employee
ServiceNow Employee

I believe the answer to this is no, but wanted to throw the question out there to see what I get back.   I do know that I can create a Notification Event, which then fires a standard Email Notification which can include HTML.   But, it would be nice to be able to just add the HTML message directly in the Notification Activity.   But it appears that only plain text is supported.

Am I missing something?

3 REPLIES 3

scottstahr
Giga Contributor

You could use a mail_script block to print some html to the notification from the workflow.



<mail_script>


  template.print(html code here);


</mail_script>



Or script a separate mail script and reference it in the notification.   More information here:
http://wiki.servicenow.com/index.php?title=Scripting_for_Email_Notifications


Thanks Scott, that works.   And you actually made me realize that you can also put HTML tags directly in the body of the Notification Activity.


Yes, HTML tags directly into the body of the Notification Activity is the only thing that worked for me.  The <mail_script> thing did nothing.

 

Example:

 

find_real_file.png