- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2025 06:46 AM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2025 05:19 AM
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);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2025 07:27 AM
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
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2025 06:54 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader