GoogleSheets

Google Sheets is a spreadsheet program that is part of the free web-based Google applications to create and format spreadsheets. Use this integration to create and modify spreadsheets.

Utilities · Google Sheets

Details

IDGoogleSheets
ProviderGoogle
CategoryUtilities
From Version6.1.0
Docker Imagedemisto/googleapi-python3:1.0.0.10182333
Supported ModulesAgentix XSIAM Cloud Posture Security

README

Google Sheets is a spreadsheet program that is part of the free web-based Google applications to create and format spreadsheets. Use this integration to create and modify spreadsheets.
This integration was integrated and tested with version 4 of Google Sheets API.

Configure Google Sheets in Cortex

Parameter Description Required
Service Account Key A service account key from Google. True
Trust any certificate (not secure)   False
Use system proxy settings   False
Email - Associate to Google Drive Used to impersonate a Google workspace user, so the spreadsheets is created in the associated Google Drive and is easily accessible from a UI. This parameter is used during the authentication process.
False

Known limitations

You can only delete a spreadsheet with the Google Drive integrations.

Commands

You can execute these commands from the CLI, as part of an automation, or in a playbook.
After you successfully execute a command, a DBot message appears in the War Room with the command details.

google-sheets-spreadsheet-create


Create a new spreadsheet.

Base Command

google-sheets-spreadsheet-create

Input

Argument Name Description Required
title The title of the spreadsheet to create. Required
locale The locale of the spreadsheet to create. Default is en. Optional
cell_format_type The type of the cell format of the spreadsheet to create. Possible values are: NUMBER, TEXT, PERCENT, CURRENCY, DATE, TIME, DATE_TIME, SCIENTIFIC. Default is TEXT. Optional
cell_format_backgroundColor A comma-separated list of background colors in the following order - red,green,blue,alpha. All values must be between 0-1. If chosen, you must specify all fields. Optional
cell_format_textformat_font_size Cell font size in the spreadsheet to create. Default is 11. Optional
cell_format_textformat_text_direction Cell text direction in the spreadsheet to create. Possible values are: LEFT_TO_RIGHT, RIGHT_TO_LEFT. Default is LEFT_TO_RIGHT. Optional
sheet_title Sets the title of the first sheet in the spreadsheet to create. Required
sheet_type Sets the type of the first sheet in the spreadsheet to create. Possible values are: GRID, OBJECT, DATASOURCE. Default is GRID. Optional

Context Output

Path Type Description
GoogleSheets.Spreadsheet.properties.title Unknown Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId Unknown Spreadsheet ID.

Command example

!google-sheets-spreadsheet-create title=NewSpreadsheet sheet_title=newSheetTitle cell_format_backgroundColor=1,1,1,1 cell_format_textformat_font_size=11 cell_format_type=TEXT

Context Example

{
    "GoogleSheets": {
        "Spreadsheet": {
            "properties": {
                "autoRecalc": "ON_CHANGE",
                "defaultFormat": {
                    "backgroundColor": {
                        "blue": 1,
                        "green": 1,
                        "red": 1
                    },
                    "backgroundColorStyle": {
                        "rgbColor": {
                            "blue": 1,
                            "green": 1,
                            "red": 1
                        }
                    },
                    "padding": {
                        "bottom": 2,
                        "left": 3,
                        "right": 3,
                        "top": 2
                    },
                    "textFormat": {
                        "bold": false,
                        "fontFamily": "arial,sans,sans-serif",
                        "fontSize": 10,
                        "foregroundColor": {},
                        "foregroundColorStyle": {
                            "rgbColor": {}
                        },
                        "italic": false,
                        "strikethrough": false,
                        "underline": false
                    },
                    "verticalAlignment": "BOTTOM",
                    "wrapStrategy": "OVERFLOW_CELL"
                },
                "locale": "en",
                "spreadsheetTheme": {
                    "primaryFontFamily": "Arial",
                    "themeColors": [
                        {
                            "color": {
                                "rgbColor": {}
                            },
                            "colorType": "TEXT"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "colorType": "BACKGROUND"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.95686275,
                                    "green": 0.52156866,
                                    "red": 0.25882354
                                }
                            },
                            "colorType": "ACCENT1"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.20784314,
                                    "green": 0.2627451,
                                    "red": 0.91764706
                                }
                            },
                            "colorType": "ACCENT2"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.015686275,
                                    "green": 0.7372549,
                                    "red": 0.9843137
                                }
                            },
                            "colorType": "ACCENT3"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.3254902,
                                    "green": 0.65882355,
                                    "red": 0.20392157
                                }
                            },
                            "colorType": "ACCENT4"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.003921569,
                                    "green": 0.42745098,
                                    "red": 1
                                }
                            },
                            "colorType": "ACCENT5"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.7764706,
                                    "green": 0.7411765,
                                    "red": 0.27450982
                                }
                            },
                            "colorType": "ACCENT6"
                        },
                        {
                            "color": {
                                "rgbColor": {
                                    "blue": 0.8,
                                    "green": 0.33333334,
                                    "red": 0.06666667
                                }
                            },
                            "colorType": "LINK"
                        }
                    ]
                },
                "timeZone": "Etc/GMT",
                "title": "NewSpreadsheet"
            },
            "sheets": [
                {
                    "properties": {
                        "gridProperties": {
                            "columnCount": 26,
                            "rowCount": 1000
                        },
                        "index": 0,
                        "sheetId": 387199274,
                        "sheetType": "GRID",
                        "title": "newSheetTitle"
                    }
                }
            ],
            "spreadsheetId": "1yRsYph-litbiP4opkjzWwVzJ3ZyOybYL5D2f840-uog",
            "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1yRsYph-litbiP4opkjzWwVzJ3ZyOybYL5D2f840-uog/edit?ouid=103020731686044834269"
        }
    }
}

Human Readable Output

Success

spreadsheet Id spreadsheet title
1yRsYph-litbiP4opkjzWwVzJ3ZyOybYL5D2f840-uog NewSpreadsheet

google-sheets-spreadsheet-get


Returns the spreadsheet of the given ID. If include_grid_data is set to true and no ranges given, will defaultly return the first 500 rows and 20 columns of the first sheet.

Base Command

google-sheets-spreadsheet-get

Input

Argument Name Description Required
spreadsheet_id ID of the spreadsheet to get. Required
include_grid_data True if grid data should be returned. This parameter is ignored if a field mask was set in the request. Possible values are: true, false. Default is false. Optional
ranges Works only with include_grid_data = True. The ranges to retrieve from the spreadsheet. Ranges are specified using A1 notation. For example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1. Optional

Context Output

Path Type Description
GoogleSheets.Spreadsheet.spreadsheetTitle Unknown Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId Unknown SpreadSheet ID.
GoogleSheets.Spreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.sheets.title Unknown Sheet title.
GoogleSheets.Spreadsheet.sheets.index Unknown Sheet index.
GoogleSheets.Spreadsheet.sheets.sheetId Unknown Sheet ID.
GoogleSheets.Spreadsheet.sheets.gridProperties Unknown Sheet grid properties.
GoogleSheets.Spreadsheet.sheets.rowData Unknown Sheet row data.

Command example

!google-sheets-spreadsheet-get spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk

Context Example

{
    "GoogleSheets": {
        "Spreadsheet": {
            "sheets": [
                {
                    "gridProperties": {
                        "columnCount": 26,
                        "rowCount": 1000
                    },
                    "index": 0,
                    "rowData": [],
                    "sheetId": 0,
                    "title": "Sheet1"
                },
                {
                    "gridProperties": {
                        "columnCount": 26,
                        "rowCount": 1000
                    },
                    "index": 1,
                    "rowData": [],
                    "sheetId": 3,
                    "title": "newSheetTitle"
                }
            ],
            "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
            "spreadsheetTitle": "NewSpreadsheet",
            "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269"
        }
    }
}

Human Readable Output

Success

NewSpreadsheet

spreadsheet Id spreadsheet url
1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269

Content

SheetId Sheet title
0 Sheet1
3 newSheetTitle

Command example

!google-sheets-spreadsheet-get spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk,1meYzOYg7oCK7zYGBJu_hw3iQ_oEvJ6EecCBOV8ZQvFA

Human Readable Output

Success

NewSpreadsheet

spreadsheet Id spreadsheet url
1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269

Content

SheetId Sheet title
0 Sheet1
3 newSheetTitle

SpreadSheet2

spreadsheet Id spreadsheet url
1meYzOYg7oCK7zYGBJu_hw3iQ_oEvJ6EecCBOV8ZQvFA https://docs.google.com/spreadsheets/d/1meYzOYg7oCK7zYGBJu_hw3iQ_oEvJ6EecCBOV8ZQvFA/edit?ouid=103020731686044834269

Content

SheetId Sheet title
1144878200 Sheet1

Command example

!google-sheets-spreadsheet-get spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk include_grid_data=true ranges=newSheetTitle!A1:F10

Context Example

{
    "GoogleSheets": {
        "Spreadsheet": {
            "sheets": [
                {
                    "gridProperties": {
                        "columnCount": 26,
                        "rowCount": 1000
                    },
                    "index": 1,
                    "rowData": [
                        {
                            "values": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "!"
                            ]
                        },
                        {
                            "values": []
                        },
                        {
                            "values": [
                                "1",
                                "2",
                                "3",
                                "4",
                                "5"
                            ]
                        },
                        {
                            "values": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "!"
                            ]
                        },
                        {
                            "values": [
                                "a",
                                "b",
                                "c",
                                "d",
                                "!"
                            ]
                        }
                    ],
                    "sheetId": 3,
                    "title": "newSheetTitle"
                }
            ],
            "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
            "spreadsheetTitle": "NewSpreadsheet",
            "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269"
        }
    }
}

Human Readable Output

Success

spreadsheet Id spreadsheet url
1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269

Name: newSheetTitle Sheet Id: 3

col 0 col 1 col 2 col 3 col 4
a b c d !
         
1 2 3 4 5
a b c d !
a b c d !

google-sheets-sheet-create


Adds a new sheet. When a sheet is added at a given index, all subsequent sheet indexes are incremented.

Base Command

google-sheets-sheet-create

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID in which to create a new sheet. Required
echo_spreadsheet Include the spreadsheet in the response. Possible values are: true, false. Default is false. Optional
sheet_title Sheet title to create. Required
sheet_index The index of the sheet within the spreadsheet. Optional
sheet_type Sheet type to create. Possible values are: GRID, OBJECT, DATA_SOURCE. Default is GRID. Optional
right_to_left True if the sheet is a right_to_left sheet instead of a left_to_right sheet. Possible values are: false, true. Optional
tab_color A comma-separated list of the color of the tab in the UI in the following order - red,green,blue,alpha. All values must be between 0-1. If chosen, you must specify all fields. Optional
hidden True if the sheet is hidden in the UI. False if it is visible. Optional
sheet_id The ID of the sheet to create. (Needs to be unique. If not specified, the sheet ID will be generated by Google Sheets. Optional

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title Unknown Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId Unknown Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-sheet-create spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk sheet_title=newSheetTitle sheet_id=3 sheet_index=2 tab_color=1,1,1,1 right_to_left=false

Human Readable Output

Success

google-sheets-sheet-duplicate


Duplicates the contents of a sheet.

Base Command

google-sheets-sheet-duplicate

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID from which to copy a sheet. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
source_sheet_id The ID of the sheet to copy. Required
new_sheet_index If set, the ID of the new sheet. If not set, an ID is chosen. If set, the ID must not conflict with any existing sheet ID and it must be non-negative number. Optional
new_sheet_name The name of the new sheet. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-sheet-duplicate new_sheet_name=duplicated_sheet spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk source_sheet_id=3 echo_spreadsheet=true

Context Example

{
    "GoogleSheets": {
        "Spreadsheet": {
            "replies": [
                {
                    "duplicateSheet": {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 997
                            },
                            "index": 0,
                            "sheetId": 2030116478,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "duplicated_sheet"
                        }
                    }
                }
            ],
            "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
            "updatedSpreadsheet": {
                "properties": {
                    "autoRecalc": "ON_CHANGE",
                    "defaultFormat": {
                        "backgroundColor": {
                            "blue": 1,
                            "green": 1,
                            "red": 1
                        },
                        "backgroundColorStyle": {
                            "rgbColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            }
                        },
                        "padding": {
                            "bottom": 2,
                            "left": 3,
                            "right": 3,
                            "top": 2
                        },
                        "textFormat": {
                            "bold": false,
                            "fontFamily": "arial,sans,sans-serif",
                            "fontSize": 10,
                            "foregroundColor": {},
                            "foregroundColorStyle": {
                                "rgbColor": {}
                            },
                            "italic": false,
                            "strikethrough": false,
                            "underline": false
                        },
                        "verticalAlignment": "BOTTOM",
                        "wrapStrategy": "OVERFLOW_CELL"
                    },
                    "locale": "en",
                    "spreadsheetTheme": {
                        "primaryFontFamily": "Arial",
                        "themeColors": [
                            {
                                "color": {
                                    "rgbColor": {}
                                },
                                "colorType": "TEXT"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 1,
                                        "green": 1,
                                        "red": 1
                                    }
                                },
                                "colorType": "BACKGROUND"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.95686275,
                                        "green": 0.52156866,
                                        "red": 0.25882354
                                    }
                                },
                                "colorType": "ACCENT1"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.20784314,
                                        "green": 0.2627451,
                                        "red": 0.91764706
                                    }
                                },
                                "colorType": "ACCENT2"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.015686275,
                                        "green": 0.7372549,
                                        "red": 0.9843137
                                    }
                                },
                                "colorType": "ACCENT3"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.3254902,
                                        "green": 0.65882355,
                                        "red": 0.20392157
                                    }
                                },
                                "colorType": "ACCENT4"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.003921569,
                                        "green": 0.42745098,
                                        "red": 1
                                    }
                                },
                                "colorType": "ACCENT5"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.7764706,
                                        "green": 0.7411765,
                                        "red": 0.27450982
                                    }
                                },
                                "colorType": "ACCENT6"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.8,
                                        "green": 0.33333334,
                                        "red": 0.06666667
                                    }
                                },
                                "colorType": "LINK"
                            }
                        ]
                    },
                    "timeZone": "Etc/GMT",
                    "title": "NewSpreadsheet"
                },
                "sheets": [
                    {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 997
                            },
                            "index": 0,
                            "sheetId": 2030116478,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "duplicated_sheet"
                        }
                    },
                    {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 1000
                            },
                            "index": 1,
                            "sheetId": 0,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "Sheet1"
                        }
                    },
                    {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 997
                            },
                            "index": 2,
                            "sheetId": 3,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "newSheetTitle"
                        }
                    }
                ],
                "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
                "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269"
            }
        }
    }
}

Human Readable Output

Success

NewSpreadsheet

spreadsheet Id spreadsheet url
1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269

Content

SheetId Sheet title
2030116478 duplicated_sheet
0 Sheet1
3 newSheetTitle

google-sheets-sheet-copy-to


Copies a single sheet from a spreadsheet to another spreadsheet.

Base Command

google-sheets-sheet-copy-to

Input

Argument Name Description Required
source_spreadsheet_id Spreadsheet ID to copy from. Required
source_sheet_id The ID of the sheet to copy. Required
destination_spreadsheet_id The ID of the spreadsheet to copy the sheet to. Required

Context Output

There is no context output for this command.

Command example

!google-sheets-sheet-copy-to source_sheet_id=3 source_spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk destination_spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk

Human Readable Output

Success

google-sheets-sheet-delete


Delete a sheet from a spreadsheet by ID.

Base Command

google-sheets-sheet-delete

Input

Argument Name Description Required
spreadsheet_id Spreadsheet from which to delete sheet. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
sheet_id ID of sheet to delete. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-sheet-delete sheet_id=3 spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk

Human Readable Output

Success

google-sheets-sheet-clear


Clears values from a spreadsheet. The caller must specify the spreadsheet ID and range. Only values are cleared. All other properties of the cell (such as formatting, data validation, etc..) are kept.

Base Command

google-sheets-sheet-clear

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID to update. Required
range A1 notation or R1C1 notation of the values to clear. A1 notation example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-sheet-clear spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk range=newSheetTitle!2:2

Human Readable Output

Success

Command example

!google-sheets-sheet-clear range=newSheetTitle spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk

Human Readable Output

Success

google-sheets-range-delete


Deletes a range of cells, shifting other cells into the deleted area.

Base Command

google-sheets-range-delete

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
sheet_id The sheet this range is in. Required
start_row_index The start row (inclusive) of the range, or not set if unbounded. Required
end_row_index The end row (exclusive) of the range, or not set if unbounded. Required
start_column_index The start column (inclusive) of the range, or not set if unbounded. Required
end_column_index The end column (exclusive) of the range, or not set if unbounded. Required
shift_dimension The dimension from which deleted cells will be replaced with. If ROWS, existing cells will be shifted upward to replace the deleted cells. If COLUMNS, existing cells will be shifted left to replace the deleted cells. Possible values are: ROWS, COLUMNS. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-range-delete spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk sheet_id=3 shift_dimension=COLUMNS start_row_index=0 end_row_index=2 start_column_index=0 end_column_index=2

Human Readable Output

Success

google-sheets-dimension-delete


Deletes the dimensions from the sheet. Note that the indexing starts from 0.

Base Command

google-sheets-dimension-delete

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
dimension_type The dimension of the span. Possible values are: ROWS, COLUMNS. Required
sheet_id The sheet this span is in. Required
start_index The start (inclusive) of the span, or not set if unbounded. Required
end_index The end (exclusive) of the span, or not set if unbounded. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-dimension-delete dimension_type=ROWS sheet_id=3 spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk start_index=0 end_index=3 echo_spreadsheet=true

Context Example

{
    "GoogleSheets": {
        "Spreadsheet": {
            "replies": [
                {}
            ],
            "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
            "updatedSpreadsheet": {
                "properties": {
                    "autoRecalc": "ON_CHANGE",
                    "defaultFormat": {
                        "backgroundColor": {
                            "blue": 1,
                            "green": 1,
                            "red": 1
                        },
                        "backgroundColorStyle": {
                            "rgbColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            }
                        },
                        "padding": {
                            "bottom": 2,
                            "left": 3,
                            "right": 3,
                            "top": 2
                        },
                        "textFormat": {
                            "bold": false,
                            "fontFamily": "arial,sans,sans-serif",
                            "fontSize": 10,
                            "foregroundColor": {},
                            "foregroundColorStyle": {
                                "rgbColor": {}
                            },
                            "italic": false,
                            "strikethrough": false,
                            "underline": false
                        },
                        "verticalAlignment": "BOTTOM",
                        "wrapStrategy": "OVERFLOW_CELL"
                    },
                    "locale": "en",
                    "spreadsheetTheme": {
                        "primaryFontFamily": "Arial",
                        "themeColors": [
                            {
                                "color": {
                                    "rgbColor": {}
                                },
                                "colorType": "TEXT"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 1,
                                        "green": 1,
                                        "red": 1
                                    }
                                },
                                "colorType": "BACKGROUND"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.95686275,
                                        "green": 0.52156866,
                                        "red": 0.25882354
                                    }
                                },
                                "colorType": "ACCENT1"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.20784314,
                                        "green": 0.2627451,
                                        "red": 0.91764706
                                    }
                                },
                                "colorType": "ACCENT2"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.015686275,
                                        "green": 0.7372549,
                                        "red": 0.9843137
                                    }
                                },
                                "colorType": "ACCENT3"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.3254902,
                                        "green": 0.65882355,
                                        "red": 0.20392157
                                    }
                                },
                                "colorType": "ACCENT4"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.003921569,
                                        "green": 0.42745098,
                                        "red": 1
                                    }
                                },
                                "colorType": "ACCENT5"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.7764706,
                                        "green": 0.7411765,
                                        "red": 0.27450982
                                    }
                                },
                                "colorType": "ACCENT6"
                            },
                            {
                                "color": {
                                    "rgbColor": {
                                        "blue": 0.8,
                                        "green": 0.33333334,
                                        "red": 0.06666667
                                    }
                                },
                                "colorType": "LINK"
                            }
                        ]
                    },
                    "timeZone": "Etc/GMT",
                    "title": "NewSpreadsheet"
                },
                "sheets": [
                    {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 1000
                            },
                            "index": 0,
                            "sheetId": 0,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "Sheet1"
                        }
                    },
                    {
                        "properties": {
                            "gridProperties": {
                                "columnCount": 26,
                                "rowCount": 997
                            },
                            "index": 1,
                            "sheetId": 3,
                            "sheetType": "GRID",
                            "tabColor": {
                                "blue": 1,
                                "green": 1,
                                "red": 1
                            },
                            "tabColorStyle": {
                                "rgbColor": {
                                    "blue": 1,
                                    "green": 1,
                                    "red": 1
                                }
                            },
                            "title": "newSheetTitle"
                        }
                    }
                ],
                "spreadsheetId": "1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk",
                "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269"
            }
        }
    }
}

Human Readable Output

Success

NewSpreadsheet

spreadsheet Id spreadsheet url
1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk https://docs.google.com/spreadsheets/d/1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk/edit?ouid=103020731686044834269

Content

SheetId Sheet title
0 Sheet1
3 newSheetTitle

google-sheets-data-paste


Inserts data into the spreadsheet starting at the specified coordinate.

Base Command

google-sheets-data-paste

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
sheet_id The sheet this coordinate is in. Required
row_index The row index of the coordinate. Required
column_index The column index of the coordinate. Required
data The data to insert. If data_kind is delimiter, the delimiter will be ‘,’ and the data should be in the following format cell1, cell2, cell3… If data_kind is html, enter a single value. Required
data_kind How to interpret the data inserted in data argument. Possible values are: delimiter, html. Required
paste_type The way the data should be pasted. Possible values are: NORMAL, VALUES, FORMAT, NO_BORDERS, FORMULA, DATA_VALIDATION, CONDITIONAL_FORMATTING. Default is NORMAL. Optional

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-data-paste column_index=0 row_index=2 data_kind=delimiter data=1,2,3,4,5 spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk sheet_id=3

Human Readable Output

Success

google-sheets-find-replace


Finds and replaces data in cells over a range, sheet, or all sheets.

Base Command

google-sheets-find-replace

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: true, false. Default is false. Optional
find The value to find. Required
replacement The value to use as the replacement. Required
sheet_id The sheet to find/replace. Optional
all_sheets True to find/replace over all sheets. Possible values are: True, False. Optional
match_case True if the search is case sensitive. Possible values are: True, False. Optional
match_entire_cell True if the find value should match the entire cell. Possible values are: True, False. Optional
range_sheet_id The sheet this range is on. Optional
range_start_row_Index The start row (inclusive) of the range, or not set if unbounded. Optional
range_end_row_Index The end row (exclusive) of the range, or not set if unbounded. Optional
range_start_column_Index The start column (inclusive) of the range, or not set if unbounded. Optional
range_end_column_Index The end column (exclusive) of the range, or not set if unbounded. Optional

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-find-replace find=e replacement=! spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk all_sheets=True

Human Readable Output

Success

google-sheets-value-update


Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.

Base Command

google-sheets-value-update

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
range The A1 notation of the values to update. For example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1. Required
input_option Determines how input data should be interpreted. Possible values are: RAW, USER_ENTERED. Required
major_dimension The major dimension of the values. Possible values are: ROWS, COLUMNS. Required
values The data that was read or to be written. This is an array of arrays. The outer array representing all the data and each inner array representing a major dimension. Each item in the inner array corresponds to one cell. To be entered in the following format - [1,2,3],[4,5,6] where each bracket will be the row or column, and each value inside will correspond to a cell. Required

Context Output

There is no context output for this command.

Command example

!google-sheets-value-update input_option=RAW major_dimension=ROWS range=newSheetTitle!A1:E5 values=[a,b,c,d,e],[a,b,c,d,e],[a,b,c,d,e],[a,b,c,d,e],[a,b,c,d,e] spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk

Human Readable Output

Success

google-sheets-value-append


Appends values to a spreadsheet. The input range is used to search for existing data and find a “table” within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide (https://developers.google.com/sheets/api/guides/values#appending_values) and sample code (https://developers.google.com/sheets/api/samples/writing#append_values) for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The valueInputOption only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell the data starts being written to.

Base Command

google-sheets-value-append

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
range The A1 notation of a range to search for a logical table of data. Values are appended after the last row of the table. A1 notation example, Sheet1!A1:D5 For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1. Required
input_option The way input data should be interpreted. Possible values are: RAW, USER_ENTERED. Optional
insert_option The way input data should be inserted. Possible values are: OVERWRITE, INSERT_ROWS. Required
major_dimension The major dimension of the values. Possible values are: ROWS, COLUMNS. Required
values The data that was read or to be written. This is an array of arrays. The outer array representing all the data and each inner array representing a major dimension. Each item in the inner array corresponds to one cell. To be entered in the following format - [1,2,3],[4,5,6] where each bracket will be the row or column, and each value inside will correspond to a cell. Required

Context Output

There is no context output for this command.

Command example

!google-sheets-value-append insert_option=OVERWRITE major_dimension=ROWS range=newSheetTitle!A1:D5 spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk input_option=RAW values=[77,77,77],[777,777,777]

Human Readable Output

Success

google-sheets-spreadsheet-update


This is a custom update command, used to apply any of the Google Sheets API options. Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid, the entire request will fail and nothing will be applied.

Base Command

google-sheets-spreadsheet-update

Input

Argument Name Description Required
spreadsheet_id Spreadsheet ID. Required
echo_spreadsheet True to add the spreadsheet to the output. Possible values are: False, True. Default is False. Optional
requests JSON input according to the method documentation and object documentation - for advanced users’ free use (Google Sheets API) https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate. Required

Context Output

Path Type Description
GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title String Spreadsheet title.
GoogleSheets.Spreadsheet.spreadsheetId String Spreadsheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl Unknown Spreadsheet URL.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId String Sheet ID.
GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title String Sheet title.

Command example

!google-sheets-spreadsheet-update spreadsheet_id=1EwL7rqcSVdkXCAwuGt4jIiDrDUEKW3bmP63dqTBolfk requests=`{"requests": [{"copyPaste": {"destination": {"startRowIndex": 0, "startColumnIndex": 0, "endRowIndex": 5, "endColumnIndex": 5, "sheetId": 3}, "pasteOrientation": "TRANSPOSE", "source": {"sheetId": 3, "startRowIndex": 0, "startColumnIndex": 0, "endColumnIndex": 5, "endRowIndex": 5}, "pasteType": "PASTE_NORMAL"}}]}`

Human Readable Output

Success

Configuration parameters

  • service_account_credentials — (required)
  • insecure — Trust any certificate (not secure)
  • proxy — Use system proxy settings
  • user_id — Email - Associate to Google Drive

Commands (14)

  • google-sheets-data-paste

    Inserts data into the spreadsheet starting at the specified coordinate.

  • google-sheets-dimension-delete

    Deletes the dimensions from the sheet. Note that the indexing starts from 0.

  • google-sheets-find-replace

    Finds and replaces data in cells over a range, sheet, or all sheets.

  • google-sheets-range-delete

    Deletes a range of cells, shifting other cells into the deleted area.

  • google-sheets-sheet-clear

    Clears values from a spreadsheet. The caller must specify the spreadsheet ID and range. Only values are cleared. All other properties of the cell (such as formatting, data validation, etc..) are kept.

  • google-sheets-sheet-copy-to

    Copies a single sheet from a spreadsheet to another spreadsheet.

  • google-sheets-sheet-create

    Adds a new sheet. When a sheet is added at a given index, all subsequent sheet indexes are incremented.

  • google-sheets-sheet-delete

    Delete a sheet from a spreadsheet by ID.

  • google-sheets-sheet-duplicate

    Duplicates the contents of a sheet.

  • google-sheets-spreadsheet-create

    Create a new spreadsheet.

  • google-sheets-spreadsheet-get

    Returns the spreadsheet of the given ID. If include_grid_data is set to true and no ranges given, will defaultly return the first 500 rows and 20 columns of the first sheet.

  • google-sheets-spreadsheet-update

    This is a custom update command, used to apply any of the Google Sheets API options. Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid, the entire request will fail and nothing will be applied.

  • google-sheets-value-append

    Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide (https://developers.google.com/sheets/api/guides/values#appending_values) and sample code (https://developers.google.com/sheets/api/samples/writing#append_values) for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The valueInputOption only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell the data starts being written to.

  • google-sheets-value-update

    Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.

category: Utilities
provider: Google
commonfields:
  id: GoogleSheets
  version: -1
sectionorder:
- Connect
- Collect
configuration:
- name: service_account_credentials
  display:
  required: true
  defaultvalue:
  type: 9
  additionalinfo: A service account key from Google.
  displaypassword: Service Account Key
  hiddenusername: true
  section: Connect
- name: insecure
  display: Trust any certificate (not secure)
  type: 8
  additionalinfo:
  required: false
  section: Connect
  advanced: true
- name: proxy
  display: Use system proxy settings
  type: 8
  additionalinfo:
  required: false
  section: Connect
  advanced: true
- name: user_id
  display: Email - Associate to Google Drive
  defaultvalue:
  type: 0
  additionalinfo: >
    Used to impersonate a Google workspace user, so the
    spreadsheets is created in the associated Google Drive and is
    easily accessible from a UI. This parameter is used during the
    authentication process.
  required: false
  section: Connect
description: Google Sheets is a spreadsheet program that is part of the free web-based Google applications to create and format spreadsheets. Use this integration to create and modify spreadsheets.
display: Google Sheets
name: GoogleSheets
script:
  commands:
  - arguments:
    - description: The title of the spreadsheet to create.
      name: title
      required: true
    - default: true
      defaultValue: en
      description: The locale of the spreadsheet to create.
      name: locale
    - auto: PREDEFINED
      defaultValue: TEXT
      description: The type of the cell format of the spreadsheet to create.
      name: cell_format_type
      predefined:
      - NUMBER
      - TEXT
      - PERCENT
      - CURRENCY
      - DATE
      - TIME
      - DATE_TIME
      - SCIENTIFIC
    - name: cell_format_backgroundColor
      description: "A comma-separated list of background colors in the following order - red,green,blue,alpha. All values must be between 0-1. If chosen, you must specify all fields."
      isArray: true
      defaultValue: ""
    - defaultValue: "11"
      description: Cell font size in the spreadsheet to create.
      name: cell_format_textformat_font_size
    - auto: PREDEFINED
      defaultValue: LEFT_TO_RIGHT
      description: Cell text direction in the spreadsheet to create.
      name: cell_format_textformat_text_direction
      predefined:
      - LEFT_TO_RIGHT
      - RIGHT_TO_LEFT
    - description: Sets the title of the first sheet in the spreadsheet to create.
      name: sheet_title
      required: true
    - auto: PREDEFINED
      defaultValue: GRID
      description: Sets the type of the first sheet in the spreadsheet to create.
      name: sheet_type
      predefined:
      - GRID
      - OBJECT
      - DATASOURCE
    description: Create a new spreadsheet.
    name: google-sheets-spreadsheet-create
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.properties.title
      description: Spreadsheet title.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: Unknown
  - arguments:
    - name: spreadsheet_id
      description: ID of the spreadsheet to get.
      required: true
      isArray: true
      defaultValue: ""
    - default: true
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
      description: True if grid data should be returned. This parameter is ignored if a field mask was set in the request.
      name: include_grid_data
    - description: Works only with include_grid_data = True. The ranges to retrieve from the spreadsheet. Ranges are specified using A1 notation. For example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1.
      isArray: true
      name: ranges
    description: Returns the spreadsheet of the given ID. If include_grid_data is set to true and no ranges given, will defaultly return the first 500 rows and 20 columns of the first sheet.
    name: google-sheets-spreadsheet-get
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetTitle
      description: Spreadsheet title.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: SpreadSheet ID.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.sheets.title
      description: Sheet title.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.sheets.index
      description: Sheet index.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.sheets.sheetId
      description: Sheet ID.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.sheets.gridProperties
      description: Sheet grid properties.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.sheets.rowData
      description: Sheet row data (only when the `include_grid_data` is set to true).
      type: Unknown
  - arguments:
    - description: Spreadsheet ID in which to create a new sheet.
      name: spreadsheet_id
      required: true
    - name: echo_spreadsheet
      description: Include the spreadsheet in the response.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - description: Sheet title to create.
      name: sheet_title
      required: true
    - description: The index of the sheet within the spreadsheet.
      name: sheet_index
    - auto: PREDEFINED
      default: true
      defaultValue: GRID
      description: Sheet type to create.
      name: sheet_type
      predefined:
      - GRID
      - OBJECT
      - DATA_SOURCE
    - description: True if the sheet is a right_to_left sheet instead of a left_to_right sheet.
      name: right_to_left
      auto: PREDEFINED
      predefined:
      - "false"
      - "true"
    - name: tab_color
      description: A comma-separated list of the color of the tab in the UI in the following order - red,green,blue,alpha. All values must be between 0-1. If chosen, you must specify all fields.
      isArray: true
      defaultValue: ""
    - description: True if the sheet is hidden in the UI. False if it is visible.
      name: hidden
    - name: sheet_id
      description: The ID of the sheet to create. (Needs to be unique. If not specified, the sheet ID will be generated by Google Sheets.
    description: Adds a new sheet. When a sheet is added at a given index, all subsequent sheet indexes are incremented.
    name: google-sheets-sheet-create
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-sheet-duplicate
    description: Duplicates the contents of a sheet.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID from which to copy a sheet.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: source_sheet_id
      description: The ID of the sheet to copy.
      required: true
      defaultValue: ""
    - name: new_sheet_index
      description: If set, the ID of the new sheet. If not set, an ID is chosen. If set, the ID must not conflict with any existing sheet ID and it must be non-negative number.
      defaultValue: ""
    - name: new_sheet_name
      description: The name of the new sheet.
      required: true
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-sheet-copy-to
    description: Copies a single sheet from a spreadsheet to another spreadsheet.
    arguments:
    - name: source_spreadsheet_id
      description: Spreadsheet ID to copy from.
      required: true
      defaultValue: ""
    - name: source_sheet_id
      description: The ID of the sheet to copy.
      required: true
      defaultValue: ""
    - name: destination_spreadsheet_id
      description: The ID of the spreadsheet to copy the sheet to.
      required: true
      defaultValue: ""
    outputs: []
  - name: google-sheets-sheet-delete
    description: Delete a sheet from a spreadsheet by ID.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet from which to delete sheet.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: sheet_id
      description: ID of sheet to delete.
      required: true
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-sheet-clear
    description: Clears values from a spreadsheet. The caller must specify the spreadsheet ID and range. Only values are cleared. All other properties of the cell (such as formatting, data validation, etc..) are kept.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID to update.
      required: true
      defaultValue: ""
    - name: range
      description: A1 notation or R1C1 notation of the values to clear. A1 notation example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1.
      required: true
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-range-delete
    description: Deletes a range of cells, shifting other cells into the deleted area.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: sheet_id
      description: The sheet this range is in.
      required: true
      defaultValue: ""
    - name: start_row_index
      description: The start row (inclusive) of the range, or not set if unbounded.
      required: true
      defaultValue: ""
    - name: end_row_index
      description: The end row (exclusive) of the range, or not set if unbounded.
      required: true
      defaultValue: ""
    - name: start_column_index
      description: The start column (inclusive) of the range, or not set if unbounded.
      required: true
      defaultValue: ""
    - name: end_column_index
      description: The end column (exclusive) of the range, or not set if unbounded.
      required: true
      defaultValue: ""
    - name: shift_dimension
      description: The dimension from which deleted cells will be replaced with. If ROWS, existing cells will be shifted upward to replace the deleted cells. If COLUMNS, existing cells will be shifted left to replace the deleted cells.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - ROWS
      - COLUMNS
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-dimension-delete
    description: Deletes the dimensions from the sheet. Note that the indexing starts from 0.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: dimension_type
      description: The dimension of the span.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - ROWS
      - COLUMNS
    - name: sheet_id
      description: The sheet this span is in.
      required: true
      defaultValue: ""
    - name: start_index
      description: The start (inclusive) of the span, or not set if unbounded.
      required: true
      defaultValue: ""
    - name: end_index
      description: The end (exclusive) of the span, or not set if unbounded.
      required: true
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-data-paste
    description: Inserts data into the spreadsheet starting at the specified coordinate.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: sheet_id
      description: The sheet this coordinate is in.
      required: true
      defaultValue: ""
    - name: row_index
      description: The row index of the coordinate.
      required: true
      defaultValue: ""
    - name: column_index
      description: The column index of the coordinate.
      required: true
      defaultValue: ""
    - name: data
      description: The data to insert. If data_kind is delimiter, the delimiter will be ',' and the data should be in the following format cell1, cell2, cell3... If data_kind is html, enter a single value.
      required: true
      defaultValue: ""
    - name: data_kind
      description: How to interpret the data inserted in data argument.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - delimiter
      - html
    - name: paste_type
      description: The way the data should be pasted.
      defaultValue: NORMAL
      auto: PREDEFINED
      predefined:
      - NORMAL
      - VALUES
      - FORMAT
      - NO_BORDERS
      - FORMULA
      - DATA_VALIDATION
      - CONDITIONAL_FORMATTING
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-find-replace
    description: Finds and replaces data in cells over a range, sheet, or all sheets.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "false"
      auto: PREDEFINED
      predefined:
      - "true"
      - "false"
    - name: find
      description: The value to find.
      required: true
      defaultValue: ""
    - name: replacement
      description: The value to use as the replacement.
      required: true
      defaultValue: ""
    - name: sheet_id
      description: The sheet to find/replace.
      defaultValue: ""
    - name: all_sheets
      description: True to find/replace over all sheets.
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - "True"
      - "False"
    - name: match_case
      description: True if the search is case sensitive.
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - "True"
      - "False"
    - name: match_entire_cell
      description: True if the find value should match the entire cell.
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - "True"
      - "False"
    - name: range_sheet_id
      description: The sheet this range is on.
      defaultValue: ""
    - name: range_start_row_Index
      description: The start row (inclusive) of the range, or not set if unbounded.
      defaultValue: ""
    - name: range_end_row_Index
      description: The end row (exclusive) of the range, or not set if unbounded.
      defaultValue: ""
    - name: range_start_column_Index
      description: The start column (inclusive) of the range, or not set if unbounded.
      defaultValue: ""
    - name: range_end_column_Index
      description: The end column (exclusive) of the range, or not set if unbounded.
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  - name: google-sheets-value-update
    description: Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: range
      description: The A1 notation of the values to update. For example, Sheet1!A1:D5. For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1.
      required: true
      defaultValue: ""
    - name: input_option
      description: Determines how input data should be interpreted.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - RAW
      - USER_ENTERED
    - name: major_dimension
      description: The major dimension of the values.
      required: true
      auto: PREDEFINED
      predefined:
      - ROWS
      - COLUMNS
    - name: values
      description: The data that was read or to be written. This is an array of arrays. The outer array representing all the data and each inner array representing a major dimension. Each item in the inner array corresponds to one cell. To be entered in the following format - [1,2,3],[4,5,6] where each bracket will be the row or column, and each value inside will correspond to a cell.
      required: true
      defaultValue: ""
    outputs: []
  - name: google-sheets-value-append
    description: Appends values to a spreadsheet. The input range is used to search for existing data and find a "table" within that range. Values will be appended to the next row of the table, starting with the first column of the table. See the guide (https://developers.google.com/sheets/api/guides/values#appending_values) and sample code (https://developers.google.com/sheets/api/samples/writing#append_values) for specific details of how tables are detected and data is appended. The caller must specify the spreadsheet ID, range, and a valueInputOption. The valueInputOption only controls how the input data will be added to the sheet (column-wise or row-wise), it does not influence what cell the data starts being written to.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: range
      description: The A1 notation of a range to search for a logical table of data. Values are appended after the last row of the table. A1 notation example, Sheet1!A1:D5 For further explanation and examples, see https://developers.google.com/sheets/api/guides/concepts#expandable-1
      required: true
      defaultValue: ""
    - name: input_option
      description: The way input data should be interpreted.
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - RAW
      - USER_ENTERED
    - name: insert_option
      description: The way input data should be inserted.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - OVERWRITE
      - INSERT_ROWS
    - name: major_dimension
      description: The major dimension of the values.
      required: true
      defaultValue: ""
      auto: PREDEFINED
      predefined:
      - ROWS
      - COLUMNS
    - name: values
      description: The data that was read or to be written. This is an array of arrays. The outer array representing all the data and each inner array representing a major dimension. Each item in the inner array corresponds to one cell. To be entered in the following format - [1,2,3],[4,5,6] where each bracket will be the row or column, and each value inside will correspond to a cell.
      required: true
      defaultValue: ""
    outputs: []
  - name: google-sheets-spreadsheet-update
    description: This is a custom update command, used to apply any of the Google Sheets API options. Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid, the entire request will fail and nothing will be applied.
    arguments:
    - name: spreadsheet_id
      description: Spreadsheet ID.
      required: true
      defaultValue: ""
    - name: echo_spreadsheet
      description: True to add the spreadsheet to the output.
      defaultValue: "False"
      auto: PREDEFINED
      predefined:
      - "False"
      - "True"
    - name: requests
      description: JSON input according to the method documentation and object documentation - for advanced users' free use (Google Sheets API) https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
      required: true
      defaultValue: ""
    outputs:
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.properties.title
      description: Spreadsheet title.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.spreadsheetId
      description: Spreadsheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.spreadsheetUrl
      description: Spreadsheet URL.
      type: Unknown
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.sheetId
      description: Sheet ID.
      type: String
    - contextPath: GoogleSheets.Spreadsheet.updatedSpreadsheet.sheets.title
      description: Sheet title.
      type: String
  dockerimage: demisto/googleapi-python3:1.0.0.10182333
  runonce: false
  script: "-"
  subtype: python3
  type: python
tests:
- GoogleSheets-Test
fromversion: 6.1.0