ServiceNow Assign file action
- Updated: 2025/09/18
The ServiceNow package now supports file stream capability. You can use the Assign file action to produce a file stream for an attachment in any ServiceNow instance. File streaming enables you to stream the file from the ServiceNow instance, eliminating the need for downloading and uploading the files.
The ServiceNow Assign file action enables you to create and run API Tasks for file based operations. For more information about file streaming using the file variable, see File streaming using file variable.
Settings
You can produce a file stream for a file in the ServiceNow using the attachment id of the file. The following settings are available in ServiceNow Assign file action:

- Attachment sys_id
- Enter the attachment id of the ServiceNow attachment. The ServiceNow instance automatically assigns an attachment id as unique identifier to a file when you upload it to any ServiceNow record.
- Session name
- Enter a name for the session. By default, the system sets Default as the default name. You can also enter a custom name or use a string variable that is mapped to a custom name.
- Assign file to a variable
- Select a file variable to map to the file stream. You can select an existing file variable from the drop-down or create a file variable using Create variable option. Use this file variable as input for file stream compatible actions of out-of-the-box packages and custom packages created using Connector Builder.