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