Planned Outage Notification NOT WORKING

lando321
Tera Contributor

Hello all,

I am trying to figure out why my notification set up for Planned Outages is NOT working. I cannot figure out what i am doing wrong, i copied the Outage start notification and modified it, but for whatever reason the Planned Outage Notification never triggers. I would really appreciate a 2nd set of eyes on this.

 

Notification:

lando321_0-1698281114961.png

lando321_1-1698281152552.png

Script action:

 

Condition: !current.cmdb_ci.nil()


PlannedserviceOutageBegin();

function PlannedserviceOutageBegin() {
	var notes_p = new GlideRecord("m2m_sp_status_subscription");
	notes_p.addQuery("cmdb_ci_service", current.cmdb_ci);
	notes_p.query();
	while (notes_p.next()) {
		gs.eventQueue("outage.planned.notif", current, notes_p.getValue('sys_user'), current.cmdb_ci.getDisplayValue());
	}
}

 

lando321_2-1698281233456.png

Events:

lando321_3-1698281289464.png

lando321_5-1698281335063.png

 

3 REPLIES 3

Tai Vu
Kilo Patron
Kilo Patron

Hi @lando321 

Double check the Event Queue, to verify whether the event was fired.

Using this URL. 

https://<instance_name>/sysevent_list.do?sysparm_query=nameSTARTSWITHoutage.planned.notif&sysparm_fi...

 

 

Cheers,

Tai Vu

Danish Bhairag2
Tera Sage
Tera Sage

Hi @lando321 ,

 

As suggested by Tai check the event logs whether the event was triggered or not. Also I want to understand when ur outage.planned event gets fired. Because in script action I am seeing that you are calling outage.planned.notif when outage.planned is triggered.

 

Thanks,

Danish

 

 

 

Shivam Saxena
Tera Contributor

@lando321 

It is a very old request and might be you got this by now. But to add on this, check your Business Rule which is firing the event. BR - Service Portal Outage Events

 

Also, make sure you have record in  m2m_sp_status_subscription table for the CI you are testing.