- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2016 01:46 PM
I have a global script preventing from access home page. Can anyone help me.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-08-2016 02:20 PM
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());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 03:10 PM
are you able to stop it?
I am getting authentication error on the above script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2022 06:16 PM
I just used it, and it worked fine for me. Did you update the Auth credentials?
You need to replace 'admin' with the username you are logging in with, and the 2nd 'admin' with the password of said user.
Example:
OLD: request.setBasicAuth("admin","admin");
New: request.setBasicAuth("user1","Password1");