История страницы
...
Download file Version 1 (Net)
Группа действий: Сервисы Google
Описание
Данное действие предназначено для загрузки файла из Google Drive.
Иконка
Параметры
Входные параметры
Контекст Контекст сеанса работы с Google Drive
Идентификатор документа Идентификатор документа в Google Drive
Расширение файла Расширение файла в Google Drive.
MIME-тип документа MIME-тип документа в Google Drive.
Имя документа Имя документа в Google Drive.
Папка для скачивания Папка для скачивания файла
Выходные параметры
Загруженный файл Расположение загруженного файла
Настройки
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 |
Свойство
Англ. наименование
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Контекст
Context
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" или "Drive.xlsx" и тд.
Для скачивания файлов без расширений (google таблицы, документы и тд):
- Поле Расширение файла - оставлять пустым;
- Поле MIME-тип документа должно быть заполнено в соотсветвсии с данной таблицей.
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;
- Поле MIME-тип документа должно быть пустым.
Пример использования
Задача
Необходимо настроить подключение к Google Drive и скачать файл "Описания проблем.docx" из Google Drive на рабочий стол.
Решение
- 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.
Подключение к Google Drive выполнено успешно. Файл скачан.