Skip to main content

Change spreadsheet name

Changes the name of the existing spreadsheet

Function EditSpreadsheetTitle(Val Token, Val Spreadsheet, Val Name) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Spreadsheet--spreadsheetStringSpreadsheetID
Name--titleStringNew name

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token       = "ya29.a0AcM612wmWdggP-K6tOc3UqW0KxYMjUi60_Uhu-ERltTaavHGbML0nRBXqkuiBcr0GNmR_1gHKowaF1Rd_4Q5Amc9O23DEBZ95sNEGnpR5...";
Spreadsheet = "1fktk0k_rOszr4c3t89Z1KXXSsRWPU0fFPgLImiN-MzI";
Name = "Test table (changed.)";

Result = OPI_GoogleSheets.EditSpreadsheetTitle(Token, Spreadsheet, Name);
    oint gsheets EditSpreadsheetTitle \
--token "***" \
--spreadsheet "1lNdwweEhK1C1fXq80MLl6-CWAj9y89EJYiUBziOrvhM" \
--title "Test table (changed.)"
Result
{
"spreadsheetId": "1psqJkXdtlHOc7Qzr4ficNkFth5dWLl0HdmMDhSTM7ZQ",
"replies": [
{}
]
}