Cmdlets for SuiteCRM

Build 24.0.9060

Update-SuiteCRM Cmdlet

Parameters   Output Objects  

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")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060