I am trying to directly display within an alert message, the current incident's priority number only

DPP1
Tera Contributor

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

10 REPLIES 10

@DPP1 

you cannot access field values in the Message field, it only takes static message

So the only way is to use script

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

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

@DPP1 

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.

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

Chaitanya ILCR
Mega Patron

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

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