Upload ServiceNow attachment
servicenow_upload_attachmentUpload a file as an attachment to a ServiceNow record by supplying table, sys_id, file name, and base64 content.
Instructions
Attach a file (provided as base64) to a record identified by table + sys_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Execute the change. In the default plan mode, omitting this returns a non-mutating before/after preview; set true to apply. SN_WRITE_MODE=apply makes execution the default. | |
| table | Yes | Table the record belongs to. | |
| sys_id | Yes | sys_id of the record to attach to. | |
| instance | No | Connection profile to use for this call (default: the active profile). See servicenow_list_instances. | |
| file_name | Yes | File name to store, e.g. 'log.txt'. | |
| content_type | No | MIME type, e.g. 'text/plain'. Defaults to octet-stream. | |
| content_base64 | Yes | File contents, base64-encoded. |