Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can anyone help me stop Global UI script

bcmc01
Kilo Expert

I have a global script preventing from access home page. Can anyone help me.

1 ACCEPTED SOLUTION

Thanks. I got it disabled by running script from another instance




var request = new GlideHTTPRequest('https://devxxxx.service-now.com/api/now/v1/table/sys_ui_script/b88536d80f0322001354943be1050e29');


request.setBasicAuth("admin","admin");


request.addHeader('Accept','application/json');


request.addHeader('Content-Type','application/json');


var response = request.put('{"active":"false"}');


gs.log(response.getStatusCode());


gs.log(response.getBody());


View solution in original post

6 REPLIES 6

Natsufab3
Kilo Guru

do you know what UI script it is?


Thanks. I got it disabled by running script from another instance




var request = new GlideHTTPRequest('https://devxxxx.service-now.com/api/now/v1/table/sys_ui_script/b88536d80f0322001354943be1050e29');


request.setBasicAuth("admin","admin");


request.addHeader('Accept','application/json');


request.addHeader('Content-Type','application/json');


var response = request.put('{"active":"false"}');


gs.log(response.getStatusCode());


gs.log(response.getBody());


Thank you very much for sharing!

nosnibor
Tera Contributor

You my friend are a life saving, and I am a buffoon those indexof() methods get me every time and I managed to kick everyone out of the system 🙂

 

Many thanks!!