Posts

Showing posts from September, 2021

Accessing value within JSON Array

 in this example: "results" : [ { "id" : "xyz" , "title" : "His Honour Judge" , "known_as" : "Joe" , "surname" : "Blogs" , "appointments" : [ { "role" : "Circuit Judge" , "role_name" : "Circuit Judge" , "type" : "Courts" } ... we wish to access the appointments. role value script: var obj = JSON . parse ( resp ); var results = obj . result . results ; for ( var i = 0 ; i < results . length ; i ++) { var sID = results [ i ]. id ; var sRole = results [ i ]. appointments [ i ]. role ; }

Base system roles and special administrative (non sysadmin) roles

San Diego: base system roles   special administrative roles   Quebec: Base system roles   Special administrative roles  

snc_internal and snc_external role assignment

Newly created users are automatically assigned the snc_internal role when they first attempt to log in to the instance, unless they have been explicitly assigned the snc_external role. You can add the snc_external role to a new user before they first log in to the instance to provide external user rights. https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/contextual-security/concept/explicit-roles.html

getMessage in client script, passed to dialogwindow

  var sMsg = new GwtMessage () . getMessage ( 'sensitive_data' ); var dialog = new GlideModal ( 'glide_modal_confirm' , true , 500 ); dialog . setTitle ( 'Check Worknotes' ); dialog . setPreference ( 'body' , new GwtMessage () . format ( sMsg ));

Demand Management in a nutshell

Image