Cmdlets for Exact Online

Build 23.0.8839

Update-ExactOnline Cmdlet

Parameters   Output Objects  

Updates Exact Online data.

Syntax

Update-ExactOnline [parameters]

Remarks

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

$conn = Connect-ExactOnline -Region 'United States' -Division '5512'
Update-ExactOnline -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Id "a1f7b7c1-1ea9-4305-82b8-ab482db90a5f"
The Where parameter can also be used to specify the primary key of the table:
Update-ExactOnline -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Where "Id = 'a1f7b7c1-1ea9-4305-82b8-ab482db90a5f'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-ExactOnline -Connection $conn -Table Accounts -Where "City = 'Raleigh'" | Update-ExactOnline -Columns @("City") -Values @("Raleigh 2")

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