The Get file stream action enables you to stream files directly from a URI. You can assign a file variable to the file and use the variable as a data source in the subsequent action within the session.

Configure the Get file stream action to assign a file variable to a file stream resource to stream the file in the subsequent automation workflow.

Prerequisites

Ensure that the following requirements are met:
  • A URI that returns or downloads a file.
  • A file variable.

Procedure

  1. Create a new bot.
    1. Log in to your instance of the Control Room.
    2. Click Automation on the left panel.
    3. Click Create > Task Bot.
    4. Enter an appropriate bot name in the Create Task Bot modal.
    5. Click Choose, and follow the prompts to select an appropriate storage location.
      The default bot storage location is \Bots\ .
    6. Click Create & edit.
  2. Double-click or drag the REST Web Services > Get file stream action.
  3. Enter the URI from which you must stream the file.
  4. Select System in Proxy configuration.
  5. By default, No Authentication is set as the Authentication Mode.
    For APIs that require authentication, select an appropriate authentication method from the Authentication Mode drop down. For more information about authentication modes, see REST Web Services package.
  6. Optional: Enter a timeout value in Wait for action to complete (in milliseconds).
  7. Select the file variable that you created earlier in Assign file to a variable drop down.
    The streamable file is assigned to this file variable.
  8. Click Save to save the action configuration.
When you run the automation, the automation assigns the file variable to the streamable file. You can use this variable as a data source for subsequent actions within the session.