Attach file
Attach a local file to a record.
Command in the ServiceNow toolkit · id ooa.servicenow/attach_file · 10 inputs (3 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Instance address (URL) | String | No | Instance URL, e.g. https://yourcompany.service-now.com. | |
| Table | String | Yes | Table name. | |
| Record sys_id | String | Yes | Record sys_id. | |
| Path | File | Yes | File to attach. | |
| User | String | No | User name. | |
| Password | Credential | No | Password from the vault. | |
| Access token | Credential | No | OAuth token from the vault. | |
| File name | String | No | Name to give the attachment; the local file name when empty. | |
| Content type | String | No | Content type; guessed from the file when empty. | |
| API version | String | No | Version of the ServiceNow REST API to call: v1, v2, or latest (the instance's current one) when empty (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| attachment_id | String | Attachment sys_id. |