Update-QB Cmdlet
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")