Skip to main content

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 ; }

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

Demand Management in a nutshell