The following code can be used in the run script activity of the workflow to update the work notes or any other fields of all the catalog tasks [Conditionally we can update the catalog tasks as well] var catalogTaskGR = new GlideRecord(‘sc_task’); catalogTaskGR.addQuery(‘request_item’, current.sys_id); catalogTaskGR.query(); while(catalogTaskGR.next()) { catalogTaskGR.work_notes = “The ServiceDesk team has started working […]
How to set Service Catalog Item variable value in ServiceNow workflow
The following code will be used to set the catalog item variable value in ServiceNow workflow run script activity // If the variable is not part of a variable set current.variables.your_variable_name =’yes’ ; // Otherwise current.variable_pool.your_variable_name = ‘yes’;
Credential Management in ServiceNow discovery
Service now is an agent less discovery mechanism that we use to populate CMDB with critical assets and applications in support of business services. To accomplish these goals, the use of specific credentials is needed to access the client’s systems. Credentials are stored in your ServiceNow instance or in the case of Windows systems they […]