Posts

Showing posts from January, 2022

ServiceNow Event Management: business rule best practice

 Business rules are NOT recommended on the events table for performance reasons (ServiceNow )

ServiceNow REST Debug

 property: glide.rest.debug   (ServiceNow )

ServiceNow Event Management: sys property to control if primary alert can close secondary alert

 evt_mgmt.rule_based_manual_closure   (ServiceNow )

ServiceNow How to fire a scheduled job from script

  var rec = new GlideRecord ( 'sysauto_script' ); rec . get ( 'name' , '<scheduled_job_name>' ); Snc TriggerSynchronizer . executeNow ( rec ); (ServiceNow )

ServiceNow Service Owner Workspace - intro video

 go to: SOW

ServiceNow Incoming REST Response: handling large response with pagination

 example looping through each page of the request data set var r = new sn_ws . RESTMessageV2 ( '<rest_msg_name>' ); var header = r . getRequestHeader ( "Accept" ); var authorization = r . getRequestHeader ( "Authorization" ); r . setStringParameterNoEscape ( "aParam" , aParam ); r . setQueryParameter ( 'aParam2' , aParam ); r . setQueryParameter ( 'per_page' , '20' ); r . setQueryParameter ( 'page' , '1' ); var resp = r . execute (); var responseBody = resp . haveError () ? resp . getErrorMessage () : resp . getBody (); var httpStatus = resp . getStatusCode (); var objC = JSON . parse ( responseBody ); var cPagiNation = objC . pagination . pages ; for ( var cP = 1 ; cP <= cPagiNation ; cP ++) { var r2 = n

ServiceNow Find out when a plugin was installed

Image
 go to: sys_plugin_log table you can also click into the plugin and view the activation logs: note you can also navigate to the list of plugins via sys_plugins.list (and for the logs, sys_plugin_log.list) but this does not refresh the list from the Store

ServiceNow Event management: how to switch on debug logging

 sys property: evt_mgmt.log_debug (true/false) (ServiceNow )

ServiceNow Event Management: useful Event and Alert KB

 https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0640061   (ServiceNow )

ServiceNow Event Management: where is correlation_id on em_event record?

 This can form part of the condition check on the event rule to locate it, check the event 'additional information' box (ServiceNow )

ServiceNow Set a navigation menu item to open an external website

Image
 example:   set window name box to _new (ServiceNow )