ServiceNow News
662 items
sample JSON:
"ProblemDetailsJSON":{ "id":"4466437076xxxxx6\_165458010xxxxV2", "rankedEvents":\[ { "startTime":1654580100000, "endTime":1654588096958, "entityId":"HOST-6DE08590762xxxxxx", "entityN...
ServiceNow JSON Array - access element (alert additional info box)
Import
·
over 3 years
www.cloudminus89.com
cache
e.g.
If you want it to open in a new window/tab you can set the window name field to \_blank.
(ServiceNow )
Haven't tested these all recently within global/local scopes, so feel free to h...
ServiceNow set navigation menu item to open portal page
Import
·
over 3 years
www.cloudminus89.com
cache
<https://support.servicenow.com/kb?id=kb%5Farticle%5Fview&sysparm%5Farticle=KB0780988>
A good first step in investigating any issue where CI relationships are involved, such as Dependency Views (...
ServiceNow: orphan cmdb_rel_ci records (and GlideRecord setLimit)
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 Portal record producer: add a hyperlink to helptext
Import
·
over 3 years
www.cloudminus89.com
cache
(ServiceNow )
gs.info("checking list of today's Alerts by common problemID"); var grAlerts\=new GlideRecord('em\_alert'); grAlerts.addQuery('source', 'SGO-Dynatrace'); grAlerts.addEncodedQuery('s...
ServiceNow ARRAYS: looking for matching values in alerts and events (e.g. problemID)
Import
·
over 3 years
www.cloudminus89.com
cache
in this example, we wish to retrieve the blue highlighted key value from the JSON array _tagsOfAffectedEntities_:
{ "ProblemDetailsJSON" : { "id" : "xxxx", "startTime" : 1652690280000, "endTime" ...
ServiceNow: retrieve a JSON Array element by its KEY value
Import
·
over 3 years
www.cloudminus89.com
cache
_in this example, grab a string between first and second \\_
var stext \=" OPEN Problem P-xxxxx in environment \ Non Production\\\n\\nProblem detected at: 10:42 (UTC) 26.05.2022\\n\\n---\\n\\1 imp...
ServiceNow REGEX: get a string between 2 characters
Import
·
over 3 years
www.cloudminus89.com
cache
set the progress worker entry to cancelled
go to 'active transactions' > locate the backgroundProgressJob process> right-click and kill
Haven't tested these all recently within global/local ...
var instURL \= gs.getProperty('glide.servlet.uri'); if (instURL.indexOf('https://xxxx\_prod.service-now.com') \> \-1) { gs.print('do not run on prod'); } else { var cmdb\_rel\_count \= getCMDBciREL...
ServiceNow - Script to tidy up large chunks of sterile cmdb data
Import
·
over 3 years
www.cloudminus89.com
cache
Workflows seem to be updated by the first person that use them once they are published
this might be something ServiceNow address as some point but still appears to be the case on San Diego versio...
ServiceNow - Workflow showing last updated by a non admin user
Import
·
over 3 years
www.cloudminus89.com
cache
https://developer.servicenow.com/dev.do!/reference/api/sandiego/server/c\_GlideRecordScopedAPI
Example
This show returning records 3 and 4 from the Incident table.
javascript
var now_GR = new...
ServiceNow - Target a segment of records in GlideRecord using chooseWindow
Import
·
over 3 years
www.cloudminus89.com
cache
[ https://support.servicenow.com/kb?id=kb\_article\_view&sysparm\_article=KB0715835](https://support.servicenow.com/kb?id=kb%5Farticle%5Fview&sysparm%5Farticle=KB0715835)
Browse to the following l...
Approval Summarizer formatter
(Displaying and amending view of item to be approved within the approval record)
Introduction:
When opening and viewing an approval record/form, you will typically ...
ServiceNow - Approval view of demand form: using a formatter
Import
·
over 3 years
www.cloudminus89.com
cache
in order to avoid this type of problem with special characters in strings,
see <https://community.servicenow.com/community?id=community%5Fquestion&sys%5Fid=876d4be9db9cdbc01dcaf3231f96197c>
_/...
ServiceNow - Widgets special escape characters in HTML
Import
·
over 3 years
www.cloudminus89.com
cache
in this example, I am struggling to locate a field mapping to dynatrace application > comments field
| Please turn on REST, IRE/CMDB, business rule logging and database logging on the instance wh...
ServiceNow - Turn on enhanced debugging for service graph connector via extra sys properties
Import
·
over 3 years
www.cloudminus89.com
cache
this can be due to older expired records stacking up, set all of these to active=false and your new announcement should appear (occured on San Diego version)
the appsec ones especially seem to be...
ServiceNow - Issues with announcement not appearing on the service portal
Import
·
almost 4 years
www.cloudminus89.com
cache
_appears to be no workaround or fix at present_
Ref:
<https://support.servicenow.com/kb?id=kb%5Farticle%5Fview&sysparm%5Farticle=KB0994809>
Skip to page content - button is visible on the por...
ServiceNow - "skip to page content" issue with announcements on service portal
Import
·
almost 4 years
www.cloudminus89.com
cache
as part of the Service Graph
references:
[https://store.servicenow.com/sn\_appstore\_store.do!/store/application/d43fe173dba23300c121f3c61d961958/2.2.1 ](https://store.servicenow.com/sn%5Fappst...
ServiceNow - "Service Graph Data Visualizer" and "IntegrationHub ETL"
Import
·
almost 4 years
www.cloudminus89.com
cache
function discoverTableInfo(tableName) { var bLog \= true; //bLog=false; var grCMDB \= new GlideRecord(tableName); grCMDB.orderByDesc('sys\_updated\_on'); grCMDB.query(); var iTotal \= grCMDB.getRow...
ServiceNow - Table checks: check if table populated and last updated and updated by
Import
·
almost 4 years
www.cloudminus89.com
cache