Cmdlets for BigCommerce

Build 24.0.9060

Update-BigCommerce Cmdlet

Parameters   Output Objects  

Updates BigCommerce data.

Syntax

Update-BigCommerce [parameters]

Remarks

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

$conn = Connect-BigCommerce -OAuthClientId -OAuthClientSecret -CallbackURL 'http://localhost:33333' -StoreId 'YoUrSToREId'
Update-BigCommerce -Connection $conn -Table "Customers" -Columns @("LastName") -Values @("Jon Doe") -Id "10002"
The Where parameter can also be used to specify the primary key of the table:
Update-BigCommerce -Connection $conn -Table "Customers" -Columns @("LastName") -Values @("Jon Doe") -Where "Id = '10002'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-BigCommerce -Connection $conn -Table Customers -Where "Column2 = 'Bob'" | Update-BigCommerce -Columns @("Column2") -Values @("Bob 2")

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