Display previous value of priority field

Shir Sharvit
Tera Contributor

Hey

I need to display in the body of the notification the previous value of the priority field in the Incident form.

 

I would appreciate help on how to do this

Thanks, Shir.

9 REPLIES 9

It doesn't work for me, can you help me please?

Community Alums
Not applicable

Hi @Shir Sharvit ,

I tried your problem in my PDI and it works for me please check below solution 

1. Create one event and add that event in Business rule like below image 

Event

SarthakKashyap_1-1718275618027.png

 

Business Rule 

SarthakKashyap_2-1718275718669.png

 

SarthakKashyap_0-1718275559798.png

 

(function executeRule(current, previous /*null when async*/) {

	// Add your code here
	gs.log("CHECK CALLER = " + current.caller_id.getDisplayValue() + " ________ "  + previous.caller_id.getDisplayValue())
	gs.eventQueue('incident.caller.changed',current, current.caller_id.getDisplayValue(),previous.priority);

})(current, previous);

 

 

Create notification when event in fired and add your event there.

SarthakKashyap_3-1718275740775.png

SarthakKashyap_4-1718275754957.png

SarthakKashyap_5-1718275771348.png

 

 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

 

ShirSharvit_0-1718280941989.png

The value returns to me in SYS_ID