Servicenow-workflow-api -
: Triggering a workflow via an Inbound REST API call to automate fulfillment when an external system creates a record.
: Triggers a specific workflow. workflowId : The sys_id of the workflow definition. current : The GlideRecord the workflow will run against. servicenow-workflow-api
: Always check for existing Workflow Contexts before starting a new one to avoid duplicate executions on the same record. : Triggering a workflow via an Inbound REST
The is a collection of server-side classes and methods used to programmatically interact with workflows on the ServiceNow platform. While modern automation often utilizes Flow Designer , the legacy Workflow API remains essential for managing complex, multi-state processes in older applications. Core Components current : The GlideRecord the workflow will run against
: Sends a signal to a running workflow to trigger a specific activity or transition.
: When triggering workflows via API, consider using Asynchronous triggers to prevent UI lag for the end-user. REST API trigger - ServiceNow