Notify to Incident Manager with only changed field value on incident fields changes and updated .

Varsha Soni
Tera Contributor

Hi, 

I have a requirement to send a notification to Incident Manager  when ever Incident's fields value are changed and updated. Notification should contain only those fields that have changed the value and who has changed and when it has been updated.   

I have tried to achieve it by gs.eventQueue() method in BR, but not showing the changed field value in the sent notification.

Here is the script:

BR script :
gs.eventQueuue("event_name", current, previous,"");

Notification script :

for (var x in current){
if (current[x] != previous[x]) {
template.print("Field"+current[x]+"has changed");
}

 

1 REPLY 1

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Please remove on your double posts. No need to double post your questions.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn