convert-workflow command reads a legacy ServiceNow Workflow by sys_id and generates an equivalent Flow Designer manifest. Use it to migrate from the legacy Workflow Editor to Flow Designer.convert-workflow
Convert a legacy workflow to a flow manifest.
The
sn convert-workflow <workflow_id> Convert a legacy workflow to a flow manifest.
Arguments
| Name | Required | Description |
|---|---|---|
| workflow_id | Yes | sys_id of the legacy workflow (wf_workflow table). |
Examples
sn convert-workflow abc123Converting workflow: Change Request Approval
Found 6 activities
Mapped 5 → flow actions (1 manual review needed)
Generated manifest.ts
Not all legacy workflow activities have direct Flow Designer equivalents. Review the generated manifest and check any activities flagged for manual review.