Audio alert for new ticket in portal

Tien Hoang
Tera Contributor

Hello everyone

I have a list of incident records on the portal

we want every time a record is created, there will be a sound on the portal.

please show me how to do it . tks

find_real_file.png

 

3 REPLIES 3

Mahesh23
Mega Sage

Hi,

You need to clone the widget and below code to you're widget

HTML

add this onclick() to submit button
onclick="playSound('PATH_OF_THE_NOTIFICATION_SOUND');"  

client script

function playSound(url) {
  var audio = new Audio(url);
  audio.play();
}

Ishaan Shoor
Mega Sage
Mega Sage

Hi @Tien Hoang ,

Sharing this widget that can be used to get sound alerts whenever an incident is created can be a major incident/high-priority incident or an incident assigned to a particular group. We can place this widget on a portal page(which is open on a monitoring screen or system) and whenever the conditions are met it will generate a sound alert.

Click here to download.

 

Note: Currently the widget is configured to generate alerts for Major incidents accepted, we can configure the query/tables in the widget. 

BR.

Hope this helps!
BR.
Ishaan Shoor

Hello Ishaan,

Thanks for sharing the Widget. It is in form of XML file. It would be great if you guide me with steps in detail how exactly I need to place it on Service now monitoring page?

 

Regards,

Subodh