Download file
Download file
Downloads a file from Google Drive to a local path.
Options
Drive Connection
Select the Connection action set up in the flow.
Drive file path
Enter the full path of the file in Google Drive, including its name and extension, for example /Documentos/relatorio.pdf.
File ID
Enter the file ID in Google Drive. If provided, this ID is used instead of the path. You can get the ID, for example, from the id return of the Get file by name action.
Path to download
Enter the local path where the file will be saved, including the file name, for example C:\Downloads\relatorio.pdf.
Only search in "Shared with me"
Turn this on when the file was shared with the connected account instead of owned by it. The first part of the path is then looked up in Shared with me: /report.pdf points to a file shared directly with the account, and /Client folder/report.pdf to a file inside a shared folder. Default: off.
Drive
Enter the name of the source drive. Leave it empty to use "My Drive".
Returns
Javascript code
actions["action-id"].downloadPath // local path the file was saved to (Text)
Field selection
- downloadPath — full local path the file was saved to (Text)
Rules and Conditions
- The Drive Connection and Path to download fields are required. Also fill in Drive file path or File ID; without either, the robot stops the run with an error.
- When File ID is provided, the Drive file path, Drive and Only search in "Shared with me" fields are not used.
- The given file must exist in Google Drive.
- The local destination directory must exist before the download.
- With Only search in "Shared with me" on, the Drive field is not used to find the first part of the path.