{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":46303,"path":"security-management/write-content-record-attachment-activity.md","title":"Write content to record as attachment activity","bundle":null,"doc_type":null,"release":"australia","body":"\n# Write content to record as attachment activity\n\nThis activity writes the content passed in from an input and creates a designated attachment to a given record.\n\nThe **Write content to record as attachment** activity can be used with any workflow to write content and attach it to a record.\n\n## Input variables\n\nInput variables determine the initial behavior of the activity.\n\n|Variable|Description|\n|--------|-----------|\n|tablename \\[string\\]|The table name for the record. This input field is mandatory.|\n|sysid \\[string\\]|The system identifier \\(sys\\_id\\) of a task record. This input field is mandatory.|\n|payload|The plain text content to be written as an attachment. This input field is mandatory.|\n|filename|The attachment file name.|\n\n## Output variables\n\nThe output variables contain data that can be used in subsequent activities.\n\n|Variable|Description|\n|--------|-----------|\n|result \\[string\\]|Indicates whether the update was successful.|\n\n**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)\n\n"}}