upload_attachment
Upload base64-encoded files to ServiceNow records to attach documents, screenshots, or files to incidents, changes, and other records.
Instructions
Upload a base64-encoded attachment to a ServiceNow record (requires WRITE_ENABLED=true). Useful for adding files, screenshots, or documents to incidents, changes, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name (e.g. "incident") | |
| record_sys_id | Yes | sys_id of the record to attach the file to | |
| file_name | Yes | File name including extension (e.g. "screenshot.png") | |
| content_type | Yes | MIME type (e.g. "image/png", "application/pdf", "text/plain", "application/json") | |
| content_base64 | Yes | Base64-encoded file content (use standard base64 encoding) |