ServiceNow News
662 items
via personalise list control
[;
if (instURL.indexOf('https://PRODINSTANCE.service-now.com')>-1) { gs.print('do not run on prod'); } else {
Haven't tested these all recently wi...
ServiceNow prevent running a fix script on a prod instance
Import
·
over 5 years
www.cloudminus89.com
cache
https://community.servicenow.com/community?id=community\_blog&sys\_id=dc49feeadbdd7f0c54250b55ca96191d
Haven't tested these all recently within global/local scopes, so feel free to have a play! o...
variables may still be populated on the generated RITM! Need to check with ServiceNow if this is a known issue > UPDATE: you need to tick the run on RITM and task checkboxes, as well as the cat it...
Known issue - clear variable value on ui policy action not working
Import
·
over 5 years
www.cloudminus89.com
cache
if (typeof spModal != 'undefined') { //--service portal var allFields \= g\_form.getFieldNames(); for (var fieldName in allFields) { alert(allFields\[fieldName\]); } }else{ //--classic ui var varM...
ServiceNow Loop through catalog variables CATALOG CLIENT SCRIPT (portal or classic UI)
Import
·
over 5 years
www.cloudminus89.com
cache
this approach seemed to work...where the onchange is fired on a field entitled costs\_purchase\_order and this itself needs to clear if not a number...
function onChange(control, oldValue, newVal...
Problem clearing field in onchange client script (service portal friendly); and check if val is a number
Import
·
over 5 years
www.cloudminus89.com
cache
var emptyVariables \= \[\];
var readonlyVariables \= \[\]; var keys \= \[\]; var set \= new GlideappVariablePoolQuestionSet(); set.setRequestID(current.request\_item); set.load(); var vs \= set.ge...
ServiceNow GlideappVariablePoolQuestionSet features (Service Catalog variables)
Import
·
over 5 years
www.cloudminus89.com
cache
set the variable to global=true, assuming not using a task create block in workflow (in which case use the slushbucket)
Haven't tested these all recently within global/local scopes, so feel free ...
Pull variables into catalog tasks (outside workflow block)
Import
·
over 5 years
www.cloudminus89.com
cache
Display Business Rule and Client Script - hide empty variables on cat item form and make visible vars read only (g\_scratchpad)
BUSINESS RULE (Display) - generates the scratchpads which are passe...
Display Business Rule and Client Script - hide empty variables on cat item form and make visible vars read only
Import
·
over 5 years
www.cloudminus89.com
cache
var sMsg\="A checkbox message"; if (typeof spModal != 'undefined') { //--loaded from Service Portal g\_form.setLabelOf('attachment\_attached', sMsg); } else { variableSysID \= 'ad87f965db6f1c1011ea...
Dynamically update checkbox variable's label - classic UI and portal
Import
·
over 5 years
www.cloudminus89.com
cache
// Let's start the async job to populate kb\_knowledge table with the meta description field
if (pm.isActive('com.snc.knowledge\_serviceportal'))
startAsyncPopulateMetaDescription();
function s...
Execute sch job from fix script, e.g. 'Populate Meta Description on KB Articles' fix script
Import
·
over 5 years
www.cloudminus89.com
cache
set
set glide.ui.task.insert sys property to true
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 GlideRe...
allow insert and stay on task derived tables (Paris version)
Import
·
over 5 years
www.cloudminus89.com
cache
example:
pm.isActive('com.snc.knowledge\_serviceportal')
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 ...
go to relationships:
/nav\_to.do?uri=%2Fsys\_relationship.do%3Fsys\_id%3D9ed15c0467093200cf8305225685ef6e%26sysparm\_record\_target%3Dsys\_relationship%26sysparm\_record\_row%3D9%26sysparm\_recor...
ServiceNow Paris Upgrade: how to get to the customisations unchanged list
Import
·
over 5 years
www.cloudminus89.com
cache
note: works nicely in serviceportal, not in classic ui...
glide\_list,ref\_auto\_completer=AJAXTableCompleter,ref\_ac\_columns=name;email,ref\_ac\_columns\_search=true,no\_filter
Haven't tested t...
ServiceNow Search on multiple values in list collector catalog variable
Import
·
over 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...
Dynamically refresh delivery time on a catalog item
Import
·
over 5 years
www.cloudminus89.com
cache