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

Ключ

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

Set range color Version 4 (Net)

Action group: Google services

...

Description

The action sets color for a range.

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextIndentifier of session for actionRobin.SpreadShee tsSpreadSheets contextYes
Document IDIndentifier of document for actionRobin.String
Yes
SheetName of working sheet. By default, the first sheet of the document.Robin.String
No
From сellAddress of starting сell to apply color in format «XY», where «X» - column name and «Y» - row index.Robin.String
No
To cellAddress of last сell to apply color in format «XY», where «X» - column name and «Y» - row index.Robin.String
No
ColorColor to set.Robin.String
Yes
Color codeCustom color hexadecimal code that will be applied if «Custom» was selected for «Color».Robin.String
No

 

Special conditions of use

The Google Sheets API has a limit of up to 60 read-requests per user per minute. To ensure that the action does not immediately generate an error when the limit on the number of requests is reached, the action includes a loop operation that will resend requests within a minute.

  • If the request is completed in that time, the action will complete successfully.
  • If the request cannot be sent in this time, the robot will terminate with an error.

Example of use

Task 

There is a Google spreadsheet. Set a color of the range from cell "B2" to "E4" to yellow.

Solution

Use the

Установить цвет диапазона 

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

Описание

Данное действие предназначено для заливки указанного диапазона выбранным цветом.

Иконка

Image Removed

Настройки 

...

Свойство

...

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

...

Описание

...

Тип

...

Контекст

...

Context

...

Robin.SpreadSheets 

...

ID документа

...

Document ID

...

Лист

...

Sheet

...

Наименование рабочего листа.

По умолчанию первый лист документа.

...

Ячейка От

...

From сell

...

Адрес начальной ячейки, от которой будет устанавливаться стиль.

Заполнять в формате "ХY", где "Х" - это имя столбца, а "Y" - номер строки.

По умолчанию "А1"

...

Ячейка До

...

To cell

...

Адрес конечной ячейки, до которой будет устанавливаться стиль.

Заполнять в формате "ХY", где "Х" - это имя столбца, а "Y" - номер строки.

По умолчанию до конца листа.

...

Цвет заливки, который нужно установить.

Выпадающий список допустимых цветов:

  • Нет цвета - No color
  • Белый - White
  • Темно-красный - Dark Red
  • Красный - Red
  • Оранжевый - Orange
  • Желтый - Yellow
  • Светло-зеленый - Light Green
  • Зеленый - Green
  • Голубой - Light Blue
  • Синий - Blue
  • Темно-синий - Dark Blue
  • Фиолетовый - Purple
  • Настраиваемый - Custom

...

Особые условия использования

Отсутствуют.

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

Задача: существует пустая Google таблица. Необходимо установить цвет диапазона от ячейки В2 до Е4 желтым цветом. 

Решение: воспользоваться действиями "Context Google tables", "Set range color" actions.

Реализация:

Implementation

  1. Assemble a robot scheme with the actionsСобрать следующую схему робота, состоящую из действий:
    Image Modified
  2. Настроить параметры для действия Set the "Context Google tables" :action parameters.
    Image Modified
    Заполнить поля Fill in the "The file path" и and "Application name" (подробнее о заполнении данных полей в ИНСТРУКЦИЯ ПО НАСТРОЙКЕ ПОДКЛЮЧЕНИЯ к fields (more about filling in these fields in section Instructions for setting up a connection to Google Sheets/Docs/Drive)
    .
  3. Set the Настроить параметры для действия  "Set range color" :action parameters.
    Image Modified
    В поле "Document ID" указать часть ссылки таблицыIn the ID field specify the part of the table's link.
    Запустить робота, нажав на кнопку "Старт" в верхней панели. 

Результат:

Программный робот отработал успешно.

Image Removed

Цвет диапазона установлен. 

  1. Click "Start" in the top panel to start the robot.

Result

The program robot completed successfully.

Image Added

The color is set for the range.

Image AddedImage Removed