I am trying to directly display within an alert message, the current incident's priority number only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 09:20 AM - edited 03-19-2025 09:41 AM
Hi ServiceNow SysAdmin Forum
I am trying to directly display within an alert message, the current incident's priority number only not the priority value such as 1 - Critical, 2 - High, etc., through a Business Rule without updating the Advanced option to " True ", without using script but directly by only using the Add Message option in Actions tab
=====
Incident with the priority of [ ${current.priority} ] has been created / updated
=====
Thanks
DPP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 09:47 PM
you cannot access field values in the Message field, it only takes static message
So the only way is to use script
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
03-21-2025 08:50 AM
Hi Ankur
Not sure, if I am right or not, but when I used the below static code within the alert message to be displayed as below, to display the current incident's priority field value, it did work -
=====
Current incident's priority is [ ${current.priority} ]
=====
So, maybe perhaps I need to research a little more reading through the product documentation maybe, ask around the SN community to check etc., to see how it could be achieved, if at all it could be achieved.
Thanks
DPP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2025 08:54 PM
As already informed by me, static message only works in that field.
you cannot fetch field value there
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
03-19-2025 10:41 AM
Hi @DPP1 ,
I think this is an intentional decision taken by servicenow. In almost all the scenarios users want to see the display value of the field not the backend value in the info messages. if this is not in place admins/developers have to check the advanced and have to write .getDisplayValue() just to get the display value. I did look for properties for this but couldn't find any in OOB PDI.
use the script or try and raise a HI case if you want to find out how to control this behavior
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 09:31 PM
Hi Chaitanya
Thanks for your time to provide your update.
Guess, have to go a little deeper to see what could be done / how it could be done, then, maybe !!
Thanks
DPP