UploadAttachment
Uploads a file as an attachment to a specified record.
Input
| Name | Type | Required | Description |
| TableName | String | True | Specifies the name of the ServiceNow table that the attachment will be linked to. |
| TableSysId | String | True | Defines the system identifier (sys_id) of the record in the specified table to which the file will be attached. |
| FileName | String | False | Specifies the name to assign to the uploaded attachment, including its file extension. This field is optional when the LocalPath input is provided. |
| LocalPath | String | False | Defines the full local path of the attachment file to upload from the user's system. |
Result Set Columns
| Name | Type | Description |
| SysId | String | Returns the sys_id assigned to the uploaded attachment file in ServiceNow. |
| FileName | String | Returns the name of the uploaded attachment file, including its extension. |
| TableSysId | String | Returns the sys_id of the record in the target table that the attachment is linked to. |
| TableName | String | Returns the name of the table to which the attachment is associated. |
| DownloadLink | String | Provides the URL used to download the uploaded attachment from the ServiceNow instance. |
| ContentType | String | Indicates the content type of the attachment file, such as image/jpeg or application/pdf. |
| SizeBytes | String | Shows the size of the uploaded attachment in bytes. |
| ChunkSizeBytes | String | Specifies the chunk size in bytes used during file upload for handling large attachments. |
| Compressed | String | Indicates whether the attachment file is stored in a compressed format. |
| SizeCompressed | String | Shows the size of the compressed version of the attachment file in bytes if compression is applied. |
| SysTags | String | Lists any system tags automatically or manually associated with the uploaded attachment file. |
| ImageHeight | String | Shows the height in pixels if the uploaded attachment is an image file. |
| ImageWidth | String | Shows the width in pixels if the uploaded attachment is an image file. |
| AverageImageColor | String | Provides the average color value calculated from all pixels if the attachment is an image. |
| SysModCount | String | Displays the number of times the attachment has been modified or reuploaded to the instance. |
| Hash | String | Returns the hash value generated for the attachment to verify file integrity. |
| State | String | Indicates the current state of the attachment, such as active or archived. |
| SysUpdatedBy | String | Shows the user or system entity that last updated the attachment file. |
| SysUpdatedOn | String | Displays the date and time when the attachment file was last updated in ServiceNow. |
| SysCreatedBy | String | Shows the user or process that originally uploaded the attachment file. |
| SysCreatedOn | String | Displays the date and time when the attachment file was initially created in the ServiceNow instance. |