Google Sheets
Read and write data to Google Sheets.
Authentication
This connector uses OAuth 2.0 authentication.
info
Set up your connection in the Abstra Console before using it in your workflows.
How to use
Using the Smart Chat
Execute the action "CHOOSE_ONE_ACTION_BELOW" from my connector "YOUR_CONNECTOR_NAME" using the params "PARAMS_HERE".
Using the Web Editor
from abstra.connectors import run_connection_action
result = run_connection_action(
connection_name="your_connection_name",
action_name="your_action_name",
params={
"param1": "value1",
"param2": "value2"
})
Available Actions
This connector provides 17 actions:
| Action | Purpose | Parameters |
|---|---|---|
| spreadsheets_create | Creates a spreadsheet, returning the newly created spreadsheet. | spreadsheetId (string) properties: { . title (string) . locale (string) . autoRecalc (string) . timeZone (string) . defaultFormat (object) . iterativeCalculationSettings (object) . spreadsheetTheme (object) . importFunctionsExternalUrlAccessAllowed (boolean) } (object) sheets (array) namedRanges (array) spreadsheetUrl (string) developerMetadata (array) dataSources (array) dataSourceSchedules (array) |
| spreadsheets_get | Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within grids is not returned. You can include grid data in one of 2 ways: Specify a field maskhttps://developers.google.com/workspace/sheets/api/guides/field-masks listing your desired fields using the fields URL parameter in HTTP Set the includeGridData URL parameter to true. If a field mask is set, the includeGridData parameter is ignored For large spreadsheets, as a best practice, retrieve | spreadsheetId (string) required ranges (string) includeGridData (boolean) excludeTablesInBandedRanges (boolean) |
| spreadsheets_get_by_data_filter | Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. This method differs from GetSpreadsheet in that it allows selecting which subsets of spreadsheet data to return by specifying a dataFilters parameter. Multiple DataFilters can be specified. Specifying one or more data filters returns the portions of the spreadsheet that intersect ranges matched by any of the filters. By default, data within grids is not returned. You can include grid data one of 2 ways: Specify | spreadsheetId (string) required dataFilters (array) includeGridData (boolean) excludeTablesInBandedRanges (boolean) |
| spreadsheets_batch_update | Applies one or more updates to the spreadsheet. Each request is validated before being applied. If any request is not valid then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. The replies will mirror the requests. For example, if you applied 4 updates and the 3rd one had a reply, then the response will have 2 empty replies, the actual reply, and another empty reply, in that order. Due to the collaborat | spreadsheetId (string) required requests (array) includeSpreadsheetInResponse (boolean) responseRanges (array) responseIncludeGridData (boolean) |
| values_get | Returns a range of values from a spreadsheet. The caller must specify the spreadsheet ID and a range. | spreadsheetId (string) required range (string) required majorDimension (string) valueRenderOption (string) dateTimeRenderOption (string) |
| values_update | Sets values in a range of a spreadsheet. The caller must specify the spreadsheet ID, range, and a valueInputOption. | spreadsheetId (string) required range (string) required valueInputOption (string) includeValuesInResponse (boolean) responseValueRenderOption (string) responseDateTimeRenderOption (string) majorDimension (string) values (array) |
| values_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 guidehttps://developers.google.com/workspace/sheets/api/guides/values appending_values and sample codehttps://developers.google.com/workspace/sheets/api/samples/writing append_values for specific details of how tables are detected and data is appended. The caller must s | spreadsheetId (string) required range (string) required valueInputOption (string) insertDataOption (string) includeValuesInResponse (boolean) responseValueRenderOption (string) responseDateTimeRenderOption (string) majorDimension (string) values (array) |
| values_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. | spreadsheetId (string) required range (string) required |
| values_batch_get | Returns one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more ranges. | spreadsheetId (string) required ranges (string) majorDimension (string) valueRenderOption (string) dateTimeRenderOption (string) |
| values_batch_update | Sets values in one or more ranges of a spreadsheet. The caller must specify the spreadsheet ID, a valueInputOption, and one or more ValueRanges. | spreadsheetId (string) required valueInputOption (string) data (array) includeValuesInResponse (boolean) responseValueRenderOption (string) responseDateTimeRenderOption (string) |
| values_batch_clear | Clears one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more ranges. Only values are cleared -- all other properties of the cell such as formatting and data validation are kept. | spreadsheetId (string) required ranges (array) |
| values_batch_get_by_data_filter | Returns one or more ranges of values that match the specified data filters. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges that match any of the data filters in the request will be returned. | spreadsheetId (string) required dataFilters (array) majorDimension (string) valueRenderOption (string) dateTimeRenderOption (string) |
| values_batch_update_by_data_filter | Sets values in one or more ranges of a spreadsheet. The caller must specify the spreadsheet ID, a valueInputOption, and one or more DataFilterValueRanges. | spreadsheetId (string) required valueInputOption (string) data (array) includeValuesInResponse (boolean) responseValueRenderOption (string) responseDateTimeRenderOption (string) |
| values_batch_clear_by_data_filter | Clears one or more ranges of values from a spreadsheet. The caller must specify the spreadsheet ID and one or more DataFilters. Ranges matching any of the specified data filters will be cleared. Only values are cleared -- all other properties of the cell such as formatting, data validation, etc.. are kept. | spreadsheetId (string) required dataFilters (array) |
| developer_metadata_get | Returns the developer metadata with the specified ID. The caller must specify the spreadsheet ID and the developer metadata's unique metadataId. | spreadsheetId (string) required metadataId (integer) required |
| developer_metadata_search | Returns all developer metadata matching the specified DataFilter. If the provided DataFilter represents a DeveloperMetadataLookup object, this will return all DeveloperMetadata entries selected by it. If the DataFilter represents a location in a spreadsheet, this will return all developer metadata associated with locations intersecting that region. | spreadsheetId (string) required dataFilters (array) |
| sheets_copy_to | Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet. | spreadsheetId (string) required sheetId (integer) required destinationSpreadsheetId (string) |