Update-Gmail Cmdlet
Updates Gmail data.
Syntax
Update-Gmail [parameters]
Remarks
The Update-Gmail cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Gmail data.
$conn = Connect-Gmail -User 'MyUser' -Password 'MyPassword'
Update-Gmail -Connection $conn -Table "Inbox" -Columns @("MessageBody") -Values @("Test") -Id "1001"
The Where parameter can also be used to specify the primary key of the table:
Update-Gmail -Connection $conn -Table "Inbox" -Columns @("MessageBody") -Values @("Test") -Where "Id = '1001'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Gmail -Connection $conn -Table Inbox -Where "From = '[email protected]'" | Update-Gmail -Columns @("From") -Values @("[email protected] 2")