Workspace

EktaK
Tera Contributor

While using the Workspace, Emergency change is visible. If any user click on this emergency change, error message should pop up "Emergency change should be created from resolved P1 and P2".

3 REPLIES 3

EktaK
Tera Contributor

I didn't find any exact answer from community for my issue. But after exploring i am able to resolve my issue. Sharing the answer.

 

I have removed the Emergency Change from ServiceNow Operation Workspace.

Go to table Record Type Selector [sn_sow_interceptor_record_type_selector] and  check for records with title - "Emergency" and make it inactive.
This will remove Emergency change from SOW.

 

Please mark my answer correct/helpful if it solves your problem.

Anurag Tripathi
Mega Patron
Mega Patron

Hi Ekta,

There is no direct way to do this. 

So as a work around you can write an onload client script that runs when its a new record, and its emergency change, and view is SOW. Then you can add the alert and if user confirms then only allow them to go forward. 

-Anurag

Just tried this and it works as expected

AnuragTripathi_0-1730825800962.png

function onLoad() {
   //Type appropriate comment here, and begin script below
   var x = confirm('"Emergency change should be created from resolved P1 and P2');
   if(x == false)
   {
	g_aw.closeRecord();
   }
}

 

-Anurag