Update Metadata Record
update_metadata_recordChange fields on application metadata records in a named ServiceNow application and update set, then verify the saved record and capture.
Instructions
Change fields of application metadata. Writes through the record's form in the named application and update set, then reads back the record and its capture. Refuses protected files, the platform's own schema tables, and access controls (use the ACL tools). Writing code (a script, a server condition, Jelly, a javascript: value, or switching such a record on) is refused when the session does not permit running scripts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | The form view to load. The default view when omitted. | |
| scope | No | The record's application: its scope name (e.g. "x_acme_app"), or "global". Give this or scope_id. | |
| table | Yes | The metadata table, e.g. sys_script_include, sys_ui_action, sys_properties. | |
| fields | No | Field values by column name: text, numbers, booleans, null, lists of text (glide lists), or a duration ({days, hours, minutes, seconds}). Dot-walked names are not supported; fields not on the form are refused. | |
| sys_id | Yes | The record's 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. | |
| scope_id | No | The record's application by sys_scope sys_id, instead of scope. | |
| variables | No | Variable values by element name (for records with a variables column). | |
| update_set | Yes | sys_id of an In progress update set of that application (create_update_set). The capture is verified there; for adding a column and for layout saves it must also be the working set (set_current_update_set). | |
| variable_field | No | The variables column, when the table has more than one. | |
| acknowledge_upgrade_skip | No | Only for an installed Store application, and only after the user has reviewed the change: upgrades of that application then skip this file until the customization is reviewed. |