Menu
Sheets.spreadsheets.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.
POST
/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilterUse it in a workflow
- Add a step and choose the Google Sheets connector.
- Pick the Sheets.spreadsheets.values.batch Clear By Data Filter action (under spreadsheets).
- Fill in the fields below, then reference the result from later steps as
{{sheetsSpreadsheetsValuesBatchClearByDataFilter.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
}
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{sheetsSpreadsheetsValuesBatchClearByDataFilter.response.data.<field>}}.
{
"clearedRanges": [
"string"
],
"spreadsheetId": "string"
}
Need more? See the Google Sheets guide for connection setup and behaviour shared by every action.
Was this page helpful?