ServiceNow News
662 items
write gliderecord script to a table which can then be executed on a schedule using GlideScopedEvaluator()
\-business rules to trigger the update action
\-script include to store entries in a sch...
Write to script processing table (extended from DL) to execute stored gliderecord scripts
Import
·
almost 5 years
www.cloudminus89.com
cache
The field mappings are located in table csm\_table\_map (entry: /nav\_to.do?uri=csm\_table\_map.do?sys\_id=bc77a3d0870023000e3dd61e36cb0b93 )
[ { // Wait for few seconds for (var i\=0; i<10000000; i++...
Update the request short description to the ritm short description, outside of workflow
Import
·
almost 5 years
www.cloudminus89.com
cache
e.g. 10 seconds:
do\_sleep(10000); function do\_sleep(milliseconds) { var start \= new Date().getTime(); for (var i \= 0; i < 1e7; i++) { if ((new Date().getTime() \- start) \> milliseconds){ gs.p...
Code a pause/wait - gs.sleep or gs.wait alternative, pause script for specified seconds (timer)
Import
·
almost 5 years
www.cloudminus89.com
cache
Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an encoded query embedded in the GlideRecord , e.g. var grProf = new GlideRecord ( 'x\_cls\_c...
ServiceNow Data lookup principles including catalog
Import
·
almost 5 years
www.cloudminus89.com
cache
[
Import
·
almost 5 years
www.cloudminus89.com
cache
This button mysteriously became available after installing the Problem Management Best Practice - Madrid plugins (it is actually a good feature and worth retaining, but below shows steps to remove ...
Remove the 'Add' list banner button from a related list
Import
·
almost 5 years
www.cloudminus89.com
cache
Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an encoded query embedded in the GlideRecord , e.g. var grProf = new GlideRecord ( 'x\_cls\_c...
Problem best practice plugin: disable the problem task interceptor
Import
·
almost 5 years
www.cloudminus89.com
cache
go to > state models
and consider disabling the PRB ones, if you wish to install the problem best practice plugins (including state model) to bring the instance up to date, but wish to opt out of...
State dropdown: options disappeared after installing PRB best practice module?
Import
·
almost 5 years
www.cloudminus89.com
cache
For example, display red/orange/green headers on the major incident status update email, depending on its priority
locate the email under "communication plan definitions"
[{
var grProblem \= new GlideRecord("problem"); grProblem.addEncodedQuery("short\_descriptionLIKEknown error"); grProblem.query(); if (grProblem.getRowCount() \== 140){...
Fix script bulk update bypassing workflow/engine/last updated fields
Import
·
almost 5 years
www.cloudminus89.com
cache
UI action condition:
CanMoveToRCA()
script include
[![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQjV0SV41l_d6hQDcy1sOcka8QZ5kwnRnIz1Ry_mGVv2NxOuUFT8niae5Jc1XhdvD2QJjMfbORb7_6...
Straight script include funtion, no class.create, initialise etc
Import
·
almost 5 years
www.cloudminus89.com
cache
look for the page that contains the name in the title:
[![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRXzDTIVPxpc3ZzuLvv2SDDvpbB6JF4zk8HQyYgKVHU9xLUzKRfyWlWC4DrVzrd66j893fDFLMf2...
Service Portal: change the page breadcrumb e.g. Knowledge Hub to something else
Import
·
almost 5 years
www.cloudminus89.com
cache