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