---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/security-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Write content to record as attachment activity

# Write content to record as attachment activity {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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.
{#write-content-record-attachment-activity__table_pgm_tfy_jr__entry__2}

| 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. |
[Table 1. Input variables]

{#write-content-record-attachment-activity__table_pgm_tfy_jr}

## Output variables

The output variables contain data that can be used in subsequent activities.
{#write-content-record-attachment-activity__table_bnj_jfy_jr__entry__2}

| Variable | Description |
|-|-|
| result \[string\] | Indicates whether the update was successful. |
[Table 2. Output variables]

{#write-content-record-attachment-activity__table_bnj_jfy_jr}

