> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Attach File To Record

Uploads a file and attaches it to a record in a ServiceNow table.

<Note>
  External Documentation

  To learn more, visit the [ServiceNow documentation](https://developer.servicenow.com/dev.do#!/reference/api/vancouver/rest/c_AttachmentAPI#attachment-POST-file?navFilter=file).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter        | Description                                                                                               |
  | ---------------- | --------------------------------------------------------------------------------------------------------- |
  | File Identifier  | The identifier of the file. You can create a file identifier using the `Download File From A URL` action. |
  | Record System ID | The System ID of the record that the file will be attached to.                                            |
  | Table Name       | The name of the table that the file will be uploaded to.                                                  |
</div>

## Example Output

```json theme={"dark"}
{
	"result": {
		"table_sys_id": "d71f7935c0a8016700802b64c67c11c6",
		"size_bytes": "36597",
		"download_link": "https://instance.service-now.com/api/now/attachment/994adbc64f511200adf9f8e18110c796/file",
		"sys_updated_on": "2016-02-02 14:00:21",
		"sys_id": "994adbc64f511200adf9f8e18110c796",
		"image_height": "",
		"sys_created_on": "2016-02-02 14:00:21",
		"file_name": "banner-CS0001345_v1_1.jpeg",
		"sys_created_by": "admin",
		"compressed": "true",
		"average_image_color": "",
		"sys_updated_by": "admin",
		"sys_tags": "",
		"table_name": "incident",
		"image_width": "",
		"sys_mod_count": "0",
		"content_type": "image/jpeg",
		"size_compressed": "25130"
	}
}
```

## Workflow Library Example

[Attach File to Record with Servicenow and Send Results Via Email](https://library.blinkops.com/workflows/attach-file-to-record-with-servicenow-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/attach-file-to-record-with-servicenow-and-send-results-via-email/canvas" />
</div>
