sn_attach
List, download, or upload attachments on ServiceNow records. Provide table, record sys_id, and file path to manage files.
Instructions
Manage attachments on ServiceNow records. List, download, or upload attachments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | Table name (required for list and upload) | |
| action | Yes | Attachment operation: list, download, or upload | |
| sys_id | No | Record sys_id (required for list and upload) | |
| file_path | No | Local file path to upload | |
| output_path | No | Local file path to save downloaded attachment | |
| content_type | No | MIME type for upload (default: application/octet-stream) | |
| attachment_sys_id | No | Attachment sys_id (required for download) |