Example of using a file variable with streaming
- Updated: 2025/08/13
The file variables support streaming of files directly from the data source to the automation. The file stream capability is available in file variables of both API Tasks and Task Bots.
Prerequisites
- Active OAuth connections for Microsoft 365 OneDrive and Google Drive. For more information about creating and authenticating OAuth connections, see Create OAuth connection and Authenticate user-specific OAuth connections.
- A text file named <Logs> that is located in the <Files> sub-folder in Google Drive home folder.
- Latest versions of Microsoft 365 OneDrive and Google Drive packages. For more information about both packages, see Microsoft 365 OneDrive package updates and Google Drive package updates.
- Permissions and license to create, check in, and run API Tasks. For more information about API Tasks, see API Task.
Procedure
- Log in to your instance of the Automation Anywhere Control Room as a Bot creator.
-
Create a new API Task:
-
Go to
to create a variable.
- Select File in the Type field.
- Enter filestream as the variable name in Name field.
- Optional: Enter an appropriate description in the Description field.
- Click Create to create the file variable.
- Go to Connect to add the action to Bot editor. , and double-click
-
Configure the Connect action as follows:
- Go to Assign File to add the action to Bot editor. , and double-click
-
Configure the Assign File action as follows:
- Go to Connect to add the action to Bot editor. , and double-click
-
Configure the Connect action as follows:
- Go to Upload file to add the action to Bot editor. , and double-click
-
Configure the Upload file action as follows:
- Click Save to save the API Task.