Posts

How to fire a scheduled job from script

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

Service Owner Workspace - intro video

 go to: SOW

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

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:

Event management: how to switch on debug logging

 sys property: evt_mgmt.log_debug (true/false)

Event Management: useful Event and Alert KB

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