Skip to main content

Download File

AutomatR.GoogleDrive.Activities.DownloadFile

The "Download File" activity in AutomatR is part of the Google Drive activities package, enabling automation processes to download a file from a specified folder within a Google Drive user's account to a local drive. This activity simplifies the process of retrieving files from Google Drive for further processing.

Properties

NameDescription
Input
File PathSpecifies the full path of the file to be downloaded from Google Drive, including the file name and its location within the user's account. String variables containing the file path. Example: "Root\\myFolder\\1.xlsx".
Download PathSpecifies the full path of the local drive where the downloaded file should be saved. String variables containing the local drive path. Example: "C:\\downloads".
Misc
Display NameThe display name of the activity. A display name is automatically generated when you indicate a target.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Download File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
ResultOutputs a boolean value indicating whether the file download operation was successful (true) or encountered errors (false). Variables of relevant types (e.g., Boolean variables) can store the operation result.

How to use:

  1. Drag and drop the "Download File" activity onto the workflow.
  2. Configure the properties by specifying the file path within Google Drive and the local drive path for downloading.
  3. Optionally, configure the entry delay.
  4. Execute the workflow to download the specified file from Google Drive to the local drive.

Example:

Consider an example where the "Download File" activity is used to download a file named "1.xlsx" from a folder named "myFolder" within Google Drive and save it to the local drive "C:\downloads":

Download File:
Entry Delay: 5
File Path: "Root\\myFolder\\1.xlsx"
Download Path: "C:\\downloads"
Result: isDownloadSuccessful

In this example, the activity waits for 5 seconds (specified by the entry delay) before executing the operation to download the "1.xlsx" file from the "myFolder" folder within Google Drive. The downloaded file is saved to the "C:\downloads" local drive. The result of the operation (success or failure) is stored in the Boolean variable "isDownloadSuccessful" for further handling in the workflow.