Cmdlets for Gmail

Build 25.0.9434

Update-Gmail Cmdlet

Parameters   Output Objects  

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")

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434