Script Action and Example
Script Actions The Script actions feature allows to create server side scripts that can run on server side and perform multiple tasks asynchronously. It will run or execute after the event has triggered in the system scheduler. For example: modifying records, A script action can only be triggered by an event using gs.eventQueue() method. Script actions are maintained in the System Policy —> Script Actions [sysevent_script_action] table in ServiceNow. Available Fields For Script actions we have these fields. Name: Add a unique name for a script action. Generally to maintain script actions we should maintain the naming conventions. Example: Let's take example, we have to create a script action for Close incidents/Problems when Change request gets closed, so name will be Incident-Probelm Closure Application: The application that contains this script. Example: Global or scoped applica...