Write content to record as attachment activity
reference australia Updated Sep 10, 2026 1 min read write-content-record-attachment-activity.md
This activity writes the content passed in from an input and creates a designated attachment to a given record.
The Write content to record as attachment activity can be used with any workflow to write content and attach it to a record.
Input variables
Input variables determine the initial behavior of the activity.
| Variable | Description |
|---|---|
| tablename [string] | The table name for the record. This input field is mandatory. |
| sysid [string] | The system identifier (sys_id) of a task record. This input field is mandatory. |
| payload | The plain text content to be written as an attachment. This input field is mandatory. |
| filename | The attachment file name. |
Output variables
The output variables contain data that can be used in subsequent activities.
| Variable | Description |
|---|---|
| result [string] | Indicates whether the update was successful. |
Parent Topic:Common Security Operations integration flows and orchestration activities
40 lines · 1.8 KB
--- title: Write content to record as attachment activity description: This activity writes the content passed in from an input and creates a designated attachment to a given record. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/security-management/write-content-record-attachment-activity.html release: australia topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [Common Security Operations integration flows and orchestration activities, Security Operations Integration Reference, Security Operations common functionality, Security Operations] --- # Write content to record as attachment activity This activity writes the content passed in from an input and creates a designated attachment to a given record. The **Write content to record as attachment** activity can be used with any workflow to write content and attach it to a record. ## Input variables Input variables determine the initial behavior of the activity. |Variable|Description| |--------|-----------| |tablename \[string\]|The table name for the record. This input field is mandatory.| |sysid \[string\]|The system identifier \(sys\_id\) of a task record. This input field is mandatory.| |payload|The plain text content to be written as an attachment. This input field is mandatory.| |filename|The attachment file name.| ## Output variables The output variables contain data that can be used in subsequent activities. |Variable|Description| |--------|-----------| |result \[string\]|Indicates whether the update was successful.| **Parent Topic:**[Common Security Operations integration flows and orchestration activities](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/security-management/common-wf-activities.md)
| title | Write content to record as attachment activity |
| description | This activity writes the content passed in from an input and creates a designated attachment to a given record. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/security-management/write-content-record-attachment-activity.html |
| release | australia |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Common Security Operations integration flows and orchestration activitiesSecurity Operations Integration ReferenceSecurity Operations common functionalitySecurity Operations |