Update-GoogleSheets Cmdlet
Updates Google Sheets data.
Syntax
Update-GoogleSheets [parameters]
Remarks
The Update-GoogleSheets cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Google Sheets data.
$conn = Connect-GoogleSheets Update-GoogleSheets -Connection $conn -Table "Spreadsheet1_Sheet1" -Columns @("Column1") -Values @("Jon Doe") -Id "6"The Where parameter can also be used to specify the primary key of the table:
Update-GoogleSheets -Connection $conn -Table "Spreadsheet1_Sheet1" -Columns @("Column1") -Values @("Jon Doe") -Where "Id = '6'"The primary key can also be passed to the cmdlet along the pipeline:
Select-GoogleSheets -Connection $conn -Table Spreadsheet1_Sheet1 -Where "Column2 = 'Bob'" | Update-GoogleSheets -Columns @("Column2") -Values @("Bob 2")