Update-Salesforce Cmdlet
Updates Salesforce data.
Syntax
Update-Salesforce [parameters]
Remarks
The Update-Salesforce cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Salesforce data.
$conn = Connect-Salesforce -User "MyUser" -Password "MyPassword" -SecurityToken "MySecurityToken" Update-Salesforce -Connection $conn -Table "Account" -Columns @("Name") -Values @("Jon Doe") -Id "1045625d-99ee-e011-a272-00155d01ad6b"The Where parameter can also be used to specify the primary key of the table:
Update-Salesforce -Connection $conn -Table "Account" -Columns @("Name") -Values @("Jon Doe") -Where "Id = '1045625d-99ee-e011-a272-00155d01ad6b'"The primary key can also be passed to the cmdlet along the pipeline:
Select-Salesforce -Connection $conn -Table Account -Where "Industry = 'Floppy Disks'" | Update-Salesforce -Columns @("Industry") -Values @("Floppy Disks 2")