Reference

Endpoint Clear Sheet Values


Name

clear_sheet_range

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. [API reference]

Parameters

Parameter Required Options
Name: Range

Label: Range

YES
Name: TabName

Label: TabName

If you have multiple tabs on your spreadsheet then you can specify here. By default first tab is used if you do not enter.
Name: valueRenderOption

Label: valueRenderOption

Option Value
FORMATTED_VALUE FORMATTED_VALUE
UNFORMATTED_VALUE UNFORMATTED_VALUE
FORMULA FORMULA
Name: valueInputOption

Label: valueInputOption

Option Value
USER_ENTERED USER_ENTERED
RAW RAW
Name: majorDimension

Label: majorDimension

Option Value
DIMENSION_UNSPECIFIED DIMENSION_UNSPECIFIED
COLUMNS COLUMNS
ROWS ROWS
Name: dateTimeRenderOption

Label: dateTimeRenderOption

Option Value
SERIAL_NUMBER SERIAL_NUMBER
FORMATTED_STRING FORMATTED_STRING
Name: SpreadSheetId

Label: SpreadSheetId

Enter unique spreadsheet Id. To obtain sheet Id. Open spreadsheet in browser and check URL. You will example value like 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms that is your sheet id.
Option Value
Enter Your Sheet Id
Example Sheet Id 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
spreadsheetId DT_WSTR nvarchar(100) 100
clearedRange DT_WSTR nvarchar(255) 255
If the column you are looking for is missing, consider customizing Google Sheets Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Google Sheets Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Google Sheets
Read / write Google Sheets data inside your app, perform many Google Sheets operations without coding using easy to use high performance API Connector for Google Sheets
Google Sheets
Clear Sheet Values
Required Parameters
Range Fill-in the parameter...
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Google Sheets
Read / write Google Sheets data inside your app, perform many Google Sheets operations without coding using easy to use high performance API Connector for Google Sheets
Google Sheets
Clear Sheet Values
Required Parameters
Range Fill-in the parameter...
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Clear sheet values

SELECT * FROM clear_sheet_range
WITH
(
    "Range" = 'A2:GR100'
)

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Clear sheet values

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM clear_sheet_range
WITH
(
    "Range" = ''A2:GR100''
)';

EXEC (@MyQuery) AT [LS_TO_GOOGLE_SHEETS_IN_GATEWAY];