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