Menu
Sheets.spreadsheets.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.
POST
/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilterUse it in a workflow
- Add a step and choose the Google Sheets connector.
- Pick the Sheets.spreadsheets.values.batch Get By Data Filter action (under spreadsheets).
- Fill in the fields below, then reference the result from later steps as
{{sheetsSpreadsheetsValuesBatchGetByDataFilter.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"dataFilters": [
{
"a1Range": "string",
"developerMetadataLookup": {
"locationMatchingStrategy": "DEVELOPER_METADATA_LOCATION_MATCHING_STRATEGY_UNSPECIFIED",
"locationType": "DEVELOPER_METADATA_LOCATION_TYPE_UNSPECIFIED",
"metadataId": 0,
"metadataKey": "string",
"metadataLocation": {
"dimensionRange": {
"dimension": "DIMENSION_UNSPECIFIED",
"endIndex": 0,
"sheetId": 0,
"startIndex": 0
},
"locationType": "DEVELOPER_METADATA_LOCATION_TYPE_UNSPECIFIED",
"sheetId": 0,
"spreadsheet": false
},
"metadataValue": "string",
"visibility": "DEVELOPER_METADATA_VISIBILITY_UNSPECIFIED"
},
"gridRange": {
"endColumnIndex": 0,
"endRowIndex": 0,
"sheetId": 0,
"startColumnIndex": 0,
"startRowIndex": 0
}
}
],
"dateTimeRenderOption": "SERIAL_NUMBER",
"majorDimension": "DIMENSION_UNSPECIFIED",
"valueRenderOption": "FORMATTED_VALUE"
}
Response
Returns 200 with an object. Read it in later steps with {{sheetsSpreadsheetsValuesBatchGetByDataFilter.response.data.<field>}}.
{
"spreadsheetId": "string",
"valueRanges": [
{
"dataFilters": [
{
"a1Range": "string",
"developerMetadataLookup": {
"locationMatchingStrategy": "DEVELOPER_METADATA_LOCATION_MATCHING_STRATEGY_UNSPECIFIED",
"locationType": "DEVELOPER_METADATA_LOCATION_TYPE_UNSPECIFIED",
"metadataId": 0,
"metadataKey": "string",
"metadataLocation": {
"dimensionRange": null,
"locationType": null,
"sheetId": null,
"spreadsheet": null
},
"metadataValue": "string",
"visibility": "DEVELOPER_METADATA_VISIBILITY_UNSPECIFIED"
},
"gridRange": {
"endColumnIndex": 0,
"endRowIndex": 0,
"sheetId": 0,
"startColumnIndex": 0,
"startRowIndex": 0
}
}
],
"valueRange": {
"majorDimension": "DIMENSION_UNSPECIFIED",
"range": "string",
"values": [
[
null
]
]
}
}
]
}
Need more? See the Google Sheets guide for connection setup and behaviour shared by every action.
Was this page helpful?