Update-SendGrid Cmdlet
Updates SendGrid data.
Syntax
Update-SendGrid [parameters]
Remarks
The Update-SendGrid cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SendGrid data.
$conn = Connect-SendGrid -APIKey 'MyAPIKey' Update-SendGrid -Connection $conn -Table "MarketingCampaigns" -Columns @("Subject") -Values @("March Top 50 football highlights.") -Id "16500"The Where parameter can also be used to specify the primary key of the table:
Update-SendGrid -Connection $conn -Table "MarketingCampaigns" -Columns @("Subject") -Values @("March Top 50 football highlights.") -Where "Id = '16500'"The primary key can also be passed to the cmdlet along the pipeline:
Select-SendGrid -Connection $conn -Table MarketingCampaigns -Where "Id = '17693'" | Update-SendGrid -Columns @("Id") -Values @("17693 2")