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

The following worked for me:

 

	// Add your code here
	gs.addInfoMessage('Incident with the priority of [ ' + current.priority + ' ] has been created / updated');

in the script (Check Advanced).