Cmdlets for NetSuite

Build 24.0.9060

Update-NetSuite Cmdlet

Parameters   Output Objects  

Updates NetSuite data.

Syntax

Update-NetSuite [parameters]

Remarks

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

$conn = Connect-NetSuite -AccountId "XABC123456" -Schema "SuiteTalk" -AuthScheme "Token" -OAuthClientId "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret" -OAuthAccessToken "MyOAuthAccessToken" -OAuthAccessTokenSecret "MyOAuthAccessTokenSecret"
Update-NetSuite -Connection $conn -Table "Account" -Columns @("AcctName") -Values @("Savings") -Id ""
The Where parameter can also be used to specify the primary key of the table:
Update-NetSuite -Connection $conn -Table "Account" -Columns @("AcctName") -Values @("Savings") -Where "InternalId = ''"
The primary key can also be passed to the cmdlet along the pipeline:
Select-NetSuite -Connection $conn -Table Account -Where "acctName = 'Checking'" | Update-NetSuite -Columns @("acctName") -Values @("Checking 2")

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