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
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | The context of the Google Drive session | Robin.GoogleDriv e | Yes | |
Document ID | Document ID in Google Drive | Robin.String | Yes | |
File extension | File 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-downloads | Robin.String | No | |
MIME type of document | MIME type of document in Google Drive. Used to determine the type of download: https://developers.google.com/drive/api/v3/manage-downloads | Robin.String | No | |
Document name | The 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 folder | File download folder | Robin.FolderPath | C:\doc\img | No |
Results | ||||
Downloaded file | Location of the downloaded file | Robin.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):
- Leave the File extension field blank;
- The MIME type of document field must be filled in according to this table.
To download files with extension "docx", "xlsx", etc:
- File extension field - fill in according to the file: ".docx", ".xlsx", etc;
- 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
- Move the "Connect to Google Drive" and "Download File" actions to the workspace:
- 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):
- Set the parameters for the "Download File" action.
In the "Document ID" field, specify part of the document reference - Click on the "Start" button in the top panel.
Result
Connection to Google Drive was successful. The file has been downloaded.
Обзор
Инструменты контента