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:

The screenshot of ServiceNow Assign file actions settings pane
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.
To locate the unique identifier, do the following:
  1. Log in to your ServiceNow instance and go to the appropriate table.
  2. Open the table entry and right-click the name of the attachment and select Copy link.
  3. Paste the copied link on a text editor. The value following the sys_id parameter in the URL is the unique identifier. For example, if the URL is https://<your_instance>.service-now.com/sys_attachment.do?sys_id=0000000000000001, the attachment sys_id is 0000000000000001.
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.