Cmdlets for Adobe Commerce

Build 23.0.8839

Update-AdobeCommerce Cmdlet

Parameters   Output Objects  

AdobeCommerce データを更新します。

Syntax

Update-AdobeCommerce [parameters]

Remarks

Update-AdobeCommerce コマンドレットを使って、SQL UPDATE ステートメントに似た構文を用いてAdobeCommerce データを更新できます。

$conn = Connect-AdobeCommerce -User 'admin' -Password 'admin' -Url 'https://myadobecommercehost'
Update-AdobeCommerce -Connection $conn -Table "Products" -Columns @("Name") -Values @("13") -Id "25"
Where パラメータはテーブルの主キーを指定するためにも使われます。
Update-AdobeCommerce -Connection $conn -Table "Products" -Columns @("Name") -Values @("13") -Where "EntityId = '25'"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-AdobeCommerce -Connection $conn -Table Products -Where "EntityId = '238'" | Update-AdobeCommerce -Columns @("EntityId") -Values @("238 2")

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