Cmdlets for QuickBooks

Build 24.0.9060

Update-QB Cmdlet

Parameters   Output Objects  

Updates QuickBooks data.

Syntax

Update-QB [parameters]

Remarks

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

$conn = Connect-QB
Update-QB -Connection $conn -Table "Customers" -Columns @("Name") -Values @("Trujilo, Ana") -Id "10456255-0015501366"
The Where parameter can also be used to specify the primary key of the table:
Update-QB -Connection $conn -Table "Customers" -Columns @("Name") -Values @("Trujilo, Ana") -Where "Id = '10456255-0015501366'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-QB -Connection $conn -Table Customers -Where "Name = 'Cook, Brian'" | Update-QB -Columns @("Name") -Values @("Cook, Brian 2")

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