Amending priority wording on an email notification

nicolabroad
Tera Expert

Hi,

I am configuring some email notifications and the priority shows with a word next to the priority number, for example, when adding ${priority} to the email subject line, it displays in the email as 'Priority 4 - Low'. I would like it to show only as 'Priority 4' or 'P4' instead of showing 'Low' on the end. Is there a way to amend this to only show the number rather than the wording?

Thank you 

1 ACCEPTED SOLUTION

You can't add the mail script to the subject line, but you can set the subject line within the mail script. You would do it something like this:

var str = 'Your subject';
email.setSubject(str);

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@nicolabroad 

If this is for incident table it worked fine for me, it only shows the value i.e. 5 - Planning 

you will have to use email script for that if you need to tweak it if it's some other table

 

AnkurBawiskar_0-1737473225146.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

@nicolabroad 

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