The Get file stream action streams a file directly from a URI without downloading it. This capability enables you to create file-based API Tasks. Assign a file variable to the file and use the variable as a data source for subsequent actions 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. 新しい bot を作成します。
    1. Control Room のインスタンスにログインします。
    2. 左パネルの オートメーション をクリックします。
    3. [作成] > [タスク Bot] をクリックします。
    4. botCreate Task Bot<2> モーダルに適切な 名を入力してください。
    5. 選択をクリックし、適切なストレージ場所を選択するための指示に従ってください。
      デフォルトの bot 保存場所は \Bots\ です。
    6. 作成と編集 をクリックします。
  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.