Complete Update Set
complete_update_setFinalizes an in-progress ServiceNow update set after verifying capture count, exclusive access, and application ownership.
Instructions
Complete an In progress, non-Default update set after checking what it holds: the capture count must equal expected_captures (the number you reviewed, e.g. with inspect_update_set), no other user may be working in it, and every capture must belong to the set's application. The state is read back. A Complete set should not be reopened once another instance retrieved or exported it, so complete only when the work is done and reviewed. If it was the working set, put the previous one back with restore_update_set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id | Yes | The In progress, non-Default update set to complete. | |
| 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. | |
| expected_captures | Yes | The number of captures (sys_update_xml rows) you reviewed in the set. |