Validate Workflow
validate_workflowRuns Workflow Editor validation on a workflow version (default: draft if present, else published) and returns the report without publishing or changing the workflow.
Instructions
Run the Workflow Editor's Validate Workflow on a version (by default your draft if you have one, else the published version) and return its report, without publishing anything. The platform saves the report over that version's previous one; the workflow itself is unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Which version: current (default: your draft if you have one, else the published one), published, or draft. Ignored when workflow is a version sys_id. | |
| instance | No | The ServiceNow instance auth alias to connect to. This is the alias configured via `snc configure` (e.g., "myinstance", "prod", "test"). The user will typically refer to this by name when saying things like "on my myinstance instance". If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| workflow | Yes | The workflow's name or sys_id, or a workflow version sys_id. |