Cmdlets for SugarCRM

Build 24.0.9060

Update-SugarCRM Cmdlet

Parameters   Output Objects  

Updates SugarCRM data.

Syntax

Update-SugarCRM [parameters]

Remarks

The Update-SugarCRM cmdlet allows you to use a syntax similar to SQL UPDATE statements to update SugarCRM data.

$conn = Connect-SugarCRM -URL 'http://mySugarCRM.com' -User 'myUser' -Password 'myPassword'
Update-SugarCRM -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-SugarCRM -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-SugarCRM -Connection $conn -Table Accounts -Where "Industry = 'Manufacturing'" | Update-SugarCRM -Columns @("Industry") -Values @("Manufacturing 2")

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