Cmdlets for Salesforce Marketing Cloud

Build 25.0.9434

Update-SFMarketingCloud Cmdlet

Parameters   Output Objects  

Updates Salesforce Marketing Cloud data.

Syntax

Update-SFMarketingCloud [parameters]

Remarks

The Update-SFMarketingCloud cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Salesforce Marketing Cloud data.

$conn = Connect-SFMarketingCloud -User "MyUser" -Password "MyPassword" 
Update-SFMarketingCloud -Connection $conn -Table "Subscriber" -Columns @("Status") -Values @("Jon Doe") -Id "902548304"
The Where parameter can also be used to specify the primary key of the table:
Update-SFMarketingCloud -Connection $conn -Table "Subscriber" -Columns @("Status") -Values @("Jon Doe") -Where "Id = '902548304'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-SFMarketingCloud -Connection $conn -Table Subscriber -Where "EmailAddress = '[email protected]'" | Update-SFMarketingCloud -Columns @("EmailAddress") -Values @("[email protected] 2")

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