Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Download file Version 1 (Net)

Группа действий: Сервисы Google 

Описание

Данное действие предназначено для загрузки файла из Google Drive. 

Иконка

Image Removed

Параметры

Входные параметры  

Контекст                                                  Контекст сеанса работы с 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

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextThe context of the Google Drive session

Свойство

Англ. наименование

Описание

Тип

Пример заполнения

Обязательность заполнения поля

Параметры

Контекст

Context

Контекст сеанса работы с Google Drive
Robin.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
MIME-тип документа в
in Google Drive.
Используется для определения типа загрузки
Used to determine the type of download: https://developers.google.com/drive/api/v3/manage-downloadsRobin.String
Нет

No

Имя документа

Document name
Имя документа в Google Drive. Если не указан генерится GUID строка без расширения
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 folderRobin.FolderPathC:\doc\img

Нет

РезультатыЗагруженный файл
No
Results
Downloaded file
Расположение загруженного файла
Location 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" или "Drive.xlsx" и тд.

Для скачивания файлов без расширений (google таблицы, документы и тд):

  1. Поле Расширение файла - оставлять пустым;
  2. Поле MIME-тип документа должно быть заполнено в соотсветвсии с данной таблицей.

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. Поле MIME-тип документа должно быть пустым.

Пример использования 

Задача

Необходимо настроить подключение к Google Drive и скачать файл  "Описания проблем.docx" из Google Drive на рабочий стол. 

Решение

  1. 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):

    Заполнить параметры действия "Скачать файл".
    Image Removed
    В поле "Идентификатор документа" указать часть ссылки на документ 
    Image Removed
  3. Нажать на кнопку "Старт" в верхней панели действий. 

Результат


  1. Set the parameters for the "Download File" action.
    Image Added
    In the "Document ID" field, specify part of the document reference 
    Image Added

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

Result

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

Image Added

Image AddedПодключение к Google Drive выполнено успешно. Файл скачан.