Download file Version 1 (Net)

Action group: Google services


Description

This action is for downloading a file from Google Drive. 

Action icon


Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextThe context of the Google Drive sessionRobin.GoogleDriv e
Yes
Document IDDocument ID in Google DriveRobin.String
Yes
File extensionFile extension in Google Drive. If not specified, it must be specified in the filename. Used to determine the type of download: https://developers.google.com/drive/api/v3/manage-downloadsRobin.String
No
MIME type of documentMIME type of document in Google Drive. Used to determine the type of download: https://developers.google.com/drive/api/v3/manage-downloadsRobin.String
No
Document nameThe name of the document in Google Drive. If no extension is specified in the parameter, it must be here. If not specified, a GUID string without an extension is generated.Robin.String
No
Download folderFile download folderRobin.FolderPathC:\doc\imgNo
Results
Downloaded fileLocation of the downloaded fileRobin.FilePath

Special conditions of use

In the Document name field you should specify the name of the file with the required extension: "Robin.docx" or ‘Drive.xlsx’, etc.

To download files without extensions (google spreadsheets, documents, etc):

  1. Leave the File extension field blank;
  2. The MIME type of document field must be filled in according to this table.

To download files with extension "docx", "xlsx", etc:

  1. File extension field - fill in according to the file: ".docx", ".xlsx", etc;
  2. The MIME type of document field must be empty.

Example of use 

Task

You need to set up a connection to Google Drive and download the file "Problem descriptions.docx" from Google Drive to the folder. 

Solution

Use the "Connect to Google Drive", "Download file" action.

Implementation

  1. Move the "Connect to Google Drive" and "Download File" actions to the workspace:


  2. Fill in the "File path" parameter of the "Connect to Google Drive" action (more about the file in the Instructions for setting up a connection to Google Sheets/Docs/Drive):


  3. Set the parameters for the "Download File" action.

    In the "Document ID" field, specify part of the document reference 


  4. Click on the "Start" button in the top panel. 

Result

Connection to Google Drive was successful. The file has been downloaded. 

  • Нет меток