Attach File To Record
Uploads a file and attaches it to a record in a ServiceNow table.
External Documentation
To learn more, visit the ServiceNow documentation.
Parameters
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. |
Example Output
{
"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