upload command attaches a local file to any ServiceNow record using the Attachment API.upload
Upload a file as an attachment to a record.
The
sn upload <table> <sys_id> <file> Upload an attachment to a record.
Arguments
| Name | Required | Description |
|---|---|---|
| table | Yes | The table containing the record. |
| sys_id | Yes | sys_id of the record. |
| file | Yes | Path to the local file to attach. |
Examples
sn upload incident abc123 ./screenshot.pngUploading screenshot.png (142 KB)...
✓ Attached (sys_id: def456)