push_artifact
Write edited fields back to a ServiceNow record from inline values or synced files. Use expected_updated_on to abort if the record changed since your last pull, preventing overwrites.
Instructions
Local sync: write edited fields back to an artifact (requires WRITE_ENABLED=true). Pass fields inline as {field:value}; if omitted and NOWAIKIT_SYNC_DIR is set, reads them from the pulled files on disk. Overwrites the listed fields with NO merge — run sync_status first, and pass expected_updated_on to abort if the instance changed since you pulled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Artifact table | |
| fields | No | Optional map of {field: newValue} to update; defaults to the on-disk files under NOWAIKIT_SYNC_DIR | |
| sys_id | Yes | sys_id OR name of the record | |
| expected_updated_on | No | Optional sys_updated_on from your last pull/sync_status; the push aborts with a CONFLICT if the record has changed since. |