Escalate button to send the notification from incident

Learn SN
Tera Contributor

Hi Experts,

 

I have a button ( UI ACTION) called escalate on incident form. I want that when i click that escalate button, escalation email goes to assigned to 's manager and assignment group's manager.

Can someone help me achieving this ?

 

Thanks!

 

1 ACCEPTED SOLUTION

OK, if you want a popup you'll need to go to the client but you can still show an info message with the server:

gs.eventQueue('escalate_incident', current, current.assigned_to.manager, current.assignment_group.manager);
gs.addInfoMessage("Your incident is escalated");
action.setRedirectURL(current);

View solution in original post

14 REPLIES 14

Riaz3
Giga Expert

Hello,

We have something similar.

What I have done is put a tick box in called "IM Alert Sent" which is ticked when the button is pressed.

This triggers and email which send out to people I define.

To add the managers in just dot walk, as long as they are in Service Now user record as the managers you can just dot walk.

R.

Dubz
Mega Sage

You can generate an event in the UI action and use that to trigger an email. You can pass through the manager and group manager in the parameters

gs.eventQueue('your.event.name', current, current.assigned_to.manager, current.assignment_group.manager);

Learn SN
Tera Contributor

Hi David,

 

Thanks for the solution, however I want email to contain incident number as well. How do I pass that in the subject line?

 

Thanks!

 

The SN Nerd
Giga Sage
Giga Sage
  1. Create an Event (System Policy > Events > Registry)
  2. Create UI Action with the code to queue event, passing in managers as parameters

  3. Create Notification (System Notification > Email > Notifications) with Send when of 'Event is fired' and select your event name
    find_real_file.png
  4. After saving the record, select Related Link 'Advanced view'
    find_real_file.png
  5. Select 'Event parm 1 contains recipient' & 'Event parm 2 contains recipient'
    find_real_file.png

ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022