We Find inactive LDAP accounts using the last refresh time. In this method, we add a Last Refreshed field to the user record and set the value during the import process. We create a scheduled job that checks for users that have not been refreshed in 30 days, and deactivate them. Create a datetime […]
Script include script is not working from Service Portal catalog client script GlideAjax
Change the privacy setting for a single client-callable script include by adding theisPublic() function. The isPublic() setting takes precedence over the glide.script.ccsi.ispublic property. For example, if the property is set to false making all client-callable script-includes private, and a script sets isPublic() to true, the script is public. To change the privacy for […]
Call a servicenow workflow thorough business rule script
var vars = {}; var w = new Workflow(); var context = w.startFlow(‘sys_id_of_the_workflow’, current, current.operation(), vars); Sys id of the workflow can be obtained by looking at the wf_workflow table