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

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

Prerequisites

Ensure that the URI returns or downloads a file.

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. Enable the Download file check box in the Advanced option.
  7. Select the file variable that must be assigned to the downloadable file in File path.
  8. Click Save, and then click Run.
    The automation assigns the file variable to the downloadable file. You can use this file variable as a data source for subsequent actions within the automation session.