Cmdlets for Acumatica

Build 24.0.9060

Update-Acumatica Cmdlet

Parameters   Output Objects  

Updates Acumatica data.

Syntax

Update-Acumatica [parameters]

Remarks

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

$conn = Connect-Acumatica -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -OAuthCallbackURL 'http://localhost:33333'
Update-Acumatica -Connection $conn -Table "Events" -Columns @("location_displayName") -Values @("Town Hall Grille") -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key of the table:
Update-Acumatica -Connection $conn -Table "Events" -Columns @("location_displayName") -Values @("Town Hall Grille") -Where "Id = 'Jq74mCczmFXk1tC10GB'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Acumatica -Connection $conn -Table Events -Where "Id = 'Jq74mCczmFXk1tC10GB'" | Update-Acumatica -Columns @("Id") -Values @("Jq74mCczmFXk1tC10GB 2")

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