ServiceNow News
662 items
newer improved version [here](http://www.cloudminus89.com/2021/04/improved-sys-admin-useful-service.html):
Widget defined in global scope; note can set cross scope privileges for access to scoped ...
Sys Admin useful Service Portal widget to check for duplicates in tables
Import
·
over 5 years
www.cloudminus89.com
cache
var userId, userIssue, userIssueId;
m.aboutLocation = gs.getMessage('About this location');
m.agreeModalMsg = gs.getMessage('I still want to leave this queue');
m.agreeSwitchModalMsg = gs.getMes...
Good bit of array code (borrowed from walk-up online check in widget)
Import
·
over 5 years
www.cloudminus89.com
cache
var urlString = top.location.toString();
var sURL = '/itservices?id=sc\_cat\_item&sys\_id=c49e7aac1b715090b37e997e0d4bxxxx';
if (urlString.indexOf('itservices') > -1) {//--service portal
}else{...
Catalog Client Script URL redirect: combined ServicePortal and Classic UI friendly
Import
·
over 5 years
www.cloudminus89.com
cache
add the following sample HTML to the description field on the catalog item - first add the attachment to the catalog item itself and then locate its sys\_id in the sys\_attachments table:
Please <...
Catalog item: click here to download attachment link
Import
·
over 5 years
www.cloudminus89.com
cache
(ordinarily for incident Flow Designer might be used)
alas, on New York version this is not possible, and below is a business rule + scheduled job option to avoid having to update all the RITM wor...
ServiceNow 3-strike rule on RITM (auto-close Service Request in awaiting customer)
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...
We eventually discovered this:
"This issue is happening because you have a 24/7 schedule with a 0.5 appointment window, which creates a lot of available appointment slots.
However, there is an a...
Walk-up experience - some appointment slots disappearing
Import
·
over 5 years
www.cloudminus89.com
cache
\[note more simple approach but which only works in portal (may be fixed in later versions):
set 'mandatory attachment' box to true on the catalog item \]
in case the attachment is mandatory de...
Service Portal friendly onsubmit client script to validate attachment is added
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...
Pre-populate example text on a catalog item variable
Import
·
over 5 years
www.cloudminus89.com
cache
go to knowledge> administration> properties
also go here and set to active=false
/nav\_to.do?uri=sp\_instance.do?sys\_id=7467d905db30320099f93691f0b8f553
Haven't tested these all recently within...
Knowledge in service portal: hide author in search results
Import
·
over 5 years
www.cloudminus89.com
cache
go to Service Portal> Pages > kb\_article
add the following to the page-specific CSS
Haven't tested these all recently within global/local scopes, so feel free to have a play! option 1 use an en...
Knowledge in Service Portal: hide article author in the portal
Import
·
over 5 years
www.cloudminus89.com
cache
e.g. CAB meeting record:
https://xxx.service-now.com/cab/?id=cab\_workbench&sys\_id=0aca3ccbdbf708d03168328c7c9xxxxx
\- add the user to the CAB Managers group (hence inherit the _sn\_change\_cab....
CAB Workbench: enable delegate user to view the 'host' button on the CAB meeting
Import
·
over 5 years
www.cloudminus89.com
cache
var msgKey = 'appointment.exists';
var sURL= '/walkup?id=walkup\_online\_checkin&view=appointment&location\_id=beac2e6bdbc9d414be49fe03f39zzzz&table=wu\_appointment&sys\_id=' + <sys\_id>;
getMes...
combined getMessage and url redirect (portal friendly)
Import
·
over 5 years
www.cloudminus89.com
cache
var msgKey='a.message';
getMessage(msgKey, function(msg){
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 th...
catalog client script: service portal compatible getMessage
Import
·
over 5 years
www.cloudminus89.com
cache
some of these appear to be stored in 'question\_answer' table
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 t...
ServiceNow Record producer variables stored in question_answer
Import
·
over 5 years
www.cloudminus89.com
cache
(_much neater ways of doing this with generic UI macro/widget but this was pulled together at very short notice_)
store the url, remember to prefix with https:// !!
UI MACRO:
<?xml version="1.0"...
UI Macro and Widget for service catalog: load external url using both UI macro and widget
Import
·
over 5 years
www.cloudminus89.com
cache
_return all RITM variables in the main function, then return sys\_ids in 2 separate functions_
SCRIPT INCLUDE CODE:
var lib\_request = Class.create();
lib\_request.prototype = {
retrieve\_vari...
SCRIPT INCLUDES: return multi values using multi functions in the same si call session
Import
·
over 5 years
www.cloudminus89.com
cache