Update-SuiteCRM Cmdlet
Updates SuiteCRM data.
Syntax
Update-SuiteCRM [parameters]
Remarks
The Update-SuiteCRM cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SuiteCRM data.
$conn = Connect-SuiteCRM -URL 'http://mySuiteCRM.com' -User 'myUser' -Password 'myPassword' Update-SuiteCRM -Connection $conn -Table "Accounts" -Columns @("Industry") -Values @("Manufacturing") -Id "1"The Where parameter can also be used to specify the primary key of the table:
Update-SuiteCRM -Connection $conn -Table "Accounts" -Columns @("Industry") -Values @("Manufacturing") -Where "Id = '1'"The primary key can also be passed to the cmdlet along the pipeline:
Select-SuiteCRM -Connection $conn -Table Accounts -Where "Industry = 'Manufacturing'" | Update-SuiteCRM -Columns @("Industry") -Values @("Manufacturing 2")