Cmdlets for Zoho Inventory

Build 23.0.8839

Update-ZohoInventory Cmdlet

Parameters   Output Objects  

Zoho Inventory データを更新します。

Syntax

Update-ZohoInventory [parameters]

Remarks

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

$conn = Connect-ZohoInventory -InitiateOAuth "GETANDREFRESH" -OrganizationId "YourOrganizationId"
Update-ZohoInventory -Connection $conn -Table "Contacts" -Columns @("CustomerName") -Values @("Jon Doe") -Id "3449524000000101001"
Where パラメータはテーブルの主キーを指定するためにも使われます。
Update-ZohoInventory -Connection $conn -Table "Contacts" -Columns @("CustomerName") -Values @("Jon Doe") -Where "Id = '3449524000000101001'"
主キーは、パイプライン上でコマンドレットに渡すこともできます。
Select-ZohoInventory -Connection $conn -Table Contacts -Where "FirstName = 'Test'" | Update-ZohoInventory -Columns @("FirstName") -Values @("Test 2")

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