Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

incident email notification priority

sureshp89882164
Tera Contributor

Need solution for the incident email notification template priority should be display as like value(1,2,3) instead of display as label(1-Critical, 2-High, 3-Moderate).

9 REPLIES 9

Ankur Bawiskar
Tera Patron

@sureshp89882164 

how are you printing it?

If you are doing it using ${priority} then it will show the label

you will have to use email script for this and invoke this email script in notification body

(function runMailScript(current, template, email, email_action, event) {

    // Add your code here
	template.print('Priority' + current.priority);

})(current, template, email, email_action, event);

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

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

Hi Ankur,

template.print('Priority' + current.priority);

this email script is not working.

Actually i am using template is Major incident SMS notify template. This email script is not working in the template.

 

@sureshp89882164 

where are you using that? share the complete details

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

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

I am using this one in MIM SMS notify template