ServiceNow · Schema
Attachment
Metadata about a file attachment stored in ServiceNow.
AutomationCloud ServicesDigital WorkflowsEnterprise PlatformIT Service ManagementITSMProcessesT1Workflow AutomationWorkflows
Properties
| Name | Type | Description |
|---|---|---|
| sys_id | string | Unique identifier for the attachment record. |
| file_name | string | The name of the attached file. |
| table_name | string | The table to which the attachment belongs. |
| table_sys_id | string | The sys_id of the record to which the file is attached. |
| content_type | string | The MIME type of the attached file. |
| size_bytes | integer | The size of the attached file in bytes. |
| size_compressed | integer | The compressed size of the attached file in bytes. |
| download_link | string | The URL to download the attachment file content. |
| image_height | integer | The height in pixels if the attachment is an image. |
| image_width | integer | The width in pixels if the attachment is an image. |
| hash | string | The MD5 hash of the file content. |
| state | string | The state of the attachment processing. |
| sys_created_on | string | The date and time the attachment was created. |
| sys_created_by | string | The user who uploaded the attachment. |
| sys_updated_on | string | The date and time the attachment was last modified. |
| sys_updated_by | string | The user who last modified the attachment record. |
JSON Schema
{
"type": "object",
"description": "Metadata about a file attachment stored in ServiceNow.",
"properties": {
"sys_id": {
"type": "string",
"description": "Unique identifier for the attachment record.",
"example": "500123"
},
"file_name": {
"type": "string",
"description": "The name of the attached file.",
"example": "example_value"
},
"table_name": {
"type": "string",
"description": "The table to which the attachment belongs.",
"example": "example_value"
},
"table_sys_id": {
"type": "string",
"description": "The sys_id of the record to which the file is attached.",
"example": "500123"
},
"content_type": {
"type": "string",
"description": "The MIME type of the attached file.",
"example": "example_value"
},
"size_bytes": {
"type": "integer",
"description": "The size of the attached file in bytes.",
"example": 10
},
"size_compressed": {
"type": "integer",
"description": "The compressed size of the attached file in bytes.",
"example": 10
},
"download_link": {
"type": "string",
"description": "The URL to download the attachment file content.",
"format": "uri",
"example": "https://www.example.com"
},
"image_height": {
"type": "integer",
"description": "The height in pixels if the attachment is an image.",
"example": 10
},
"image_width": {
"type": "integer",
"description": "The width in pixels if the attachment is an image.",
"example": 10
},
"hash": {
"type": "string",
"description": "The MD5 hash of the file content.",
"example": "example_value"
},
"state": {
"type": "string",
"description": "The state of the attachment processing.",
"example": "example_value"
},
"sys_created_on": {
"type": "string",
"description": "The date and time the attachment was created.",
"format": "date-time",
"example": "2026-01-15T10:30:00Z"
},
"sys_created_by": {
"type": "string",
"description": "The user who uploaded the attachment.",
"example": "example_value"
},
"sys_updated_on": {
"type": "string",
"description": "The date and time the attachment was last modified.",
"format": "date-time",
"example": "2026-01-15T10:30:00Z"
},
"sys_updated_by": {
"type": "string",
"description": "The user who last modified the attachment record.",
"example": "example_value"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Attachment"
}