ServiceNow News
662 items
Determining which fields are copied over from a cancelled change request to the new change request is controlled via the system property called: 'com.snc.change\_request.copy.attributes'
(ServiceN...
ServiceNow fields which get copied during a copy change operation from the button
Import
·
over 3 years
www.cloudminus89.com
cache
'Before' Business Rules should not update() or insert() records on other tables
see
[technical best practices](https://developer.servicenow.com/dev.do!/guide/orlando/now-platform/tpb-guide/busi...
ServiceNow Health Scan: business rule updating related records should run after not before
Import
·
over 3 years
www.cloudminus89.com
cache
the answer is that this is a level higher than even elevated privilege - MAINT - which only ServiceNow have not the local instance admins. Will be interesting to see if ServiceNow addresses this in...
ServiceNow ACL role 'nobody' role - why can't you access it? and workaround
Import
·
over 3 years
www.cloudminus89.com
cache
Don't use a variable called gr in scripts (call it grCMDB or something not just gr)[ Ref](https://support.servicenow.com/kb?id=kb%5Farticle%5Fview&sysparm%5Farticle=KB0713029)
Haven't tested thes...
ServiceNow Health Scans: items that can get picked up
Import
·
over 3 years
www.cloudminus89.com
cache
This should display the first 10 or so records
(ServiceNow )
Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an encoded query embedded...
ServiceNow double-wildcard in reference dropdowns (**)
Import
·
over 3 years
www.cloudminus89.com
cache
var gr \= new GlideRecord("sys\_object\_source"); gr.addQuery("name", "SGO-Dynatrace"); var grOR \= gr.addQuery("id", "STARTSWITH", "HOST-"); grOR.addOrCondition("id", "STARTSWITH", "PROCESS\_GROUP...
ServiceNow GlideRecord Or query example (addOrCondition)
Import
·
over 3 years
www.cloudminus89.com
cache
this requires the payload builder plugin to be installed in addition to integration hub
(ServiceNow )
Haven't tested these all recently within global/local scopes, so feel free to have a play!...
ServiceNow add a JSON/XML activity to flow designer
Import
·
over 3 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 grant the view history list feature to a non admin
Import
·
over 3 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 inbound email to read data from table in body of email message
Import
·
over 3 years
www.cloudminus89.com
cache
Ideally the workflows and ootb business rules should handle these scenarios
but as a catch all, make it _asynch update_ so it doesn't clash with any workflows
(function executeRule(current, previ...
ServiceNow code a business rule to close child tasks added manually of a Change request belt-and-braces
Import
·
over 3 years
www.cloudminus89.com
cache
Ideally the workflows and ootb business rules should handle these scenarios
but as a catch all, make it _asynch update_ so it doesn't clash with any workflows
(function executeRule(current, prev...
ServiceNow code a business rule to close parent REQ / child tasks of a RITM belt-and-braces
Import
·
over 3 years
www.cloudminus89.com
cache
example:
ref\_auto\_completer=AJAXTableCompleter,ref\_ac\_columns=name;aliases,ref\_ac\_columns\_search=true
(ServiceNow )
Haven't tested these all recently within global/local scopes, so fee...
ServiceNow making variable fields on portal searchable on multi columns
Import
·
over 3 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 issues running rest api tests using snc read only role
Import
·
over 3 years
www.cloudminus89.com
cache
var gaAzure \= new GlideAggregate('cmdb\_ci'); var sQuery \= 'sys\_class\_nameLIKEazure^operational\_status=1^sys\_updated\_on<javascript:gs.beginningOfLast9Months()^discovery\_source=NULL^ORdiscov...
ServiceNow GlideAggregate: count number of Azure tables in the cmdb meeting a certain criteria
Import
·
over 3 years
www.cloudminus89.com
cache
function updateCIs(batch) { gs.log('START...', 'fixscript\-retire Azure classes'); var grAzure \= new GlideRecord('cmdb\_ci'); var sQuery \= 'sys\_class\_nameLIKEazure^operational\_status=1^sys\_up...
ServiceNow update large number of Azure classes in the cmdb to non-operational
Import
·
over 3 years
www.cloudminus89.com
cache