DownloadFile
This activity helps the user to download the specific file from the connected google drive account folder.
Properties
Configuration
Each activity requires a connection with Google Drive API. Once you select the respective project name where Google Drive has been integrated, the activity will automatically retrieve the available connections for that project.
Below are the properties available after the project has been integrated:
Google Drive: This parameter indicates the account name associated with the integration.
INPUT
SelectFile: *This parameter allows you to specify the file that needs to be downloaded. It offers multiple methods to select the file:
1. Browse Option: When selecting the “Click on Browse” option, it will automatically list the folders and files available for the specified account. The user must manually select the file each time when using this option.
2. Three-Line Menu: Clicking on the “Three lines” icon will open a context menu with the following two options.
a. Reload Folder Picker: Refreshes the selected folder to select another file if required.
b. Use Variable: Allows you to provide the “File Name” as a variable in “String” format. You can either hardcode the values as a string or use a variable of the “String” datatype. Below are the values that can be provided as variable,
i. URL or ID: After uploading the file to the specified Google account, you will receive the File’s URL and ID. You can use these as a reference to download them.
DownloadLocation: *This parameter specifies to provide the path where the file will be downloaded on the local system. It accepts values in the String format, which can either be hardcoded or passed as a variable of the String datatype.
FileName: It indicates to provide a custom name for the file to be downloaded. It accepts values in the String format, which can either be hardcoded or passed as a variable of the String datatype.
MISC
DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.
SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False: Halt the workflow if it encounters any errors.
None: If the option is left blank, the activity will, by default, behave as if “False” were chosen.
Version: It indicates the version of the feature being used.
OUTPUT
LocalFilePath: This parameter allows you to view the output of the activity as the file path of the downloaded file on the local system. It returns values in the String datatype.
Result: It provides the ability to view the execution status of the activity. It returns values in “Boolean.”
True: Indicates that the activity has been executed successfully without any errors.
False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.
* Represents mandatory fields to execute the workflow.