How to notify user with incident changes ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 04:52 AM
Hi
I want to make a notification that display any updates/changes made to an incident by someone else than the incident's "assigned to".
Is it possible to include the update/change, whatever it may be, in the notification message? and if yes, how so?
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 04:55 AM
Yes, it is possible. create a notification like below so triggers for each and every update on incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 04:59 AM
I have done this but i need to include the actual changes made to the incident, in the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 05:10 AM
If u want to send what change is made, in such scenarios you need to create multiple notifications and under conditions you need to select specific field...
Ex: If you want to trigger notification when additional comment changes, then under conditions you need to add...
Additional comment changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 05:09 AM
Hi,
You would need to write BR which will trigger on an update of the record. And pass current and previous object to notification and check which field have been changed by using below script logic.
BR script :
gs.eventQueuue("event_name",current,previous,"");
Notification script :
previous=event.parm1;
for (var x in current){
if (current[x] != previous[x]) {
template.print("Field"+current[x]+"has changed");
}
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP