Cmdlets for Cvent

Build 24.0.9060

Update-Cvent Cmdlet

Parameters   Output Objects  

Updates Cvent data.

Syntax

Update-Cvent [parameters]

Remarks

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

$conn = Connect-Cvent -InitiateOAuth "GETANDREFRESH" -OAuthClientId "MyOAuthClientId" -OAuthClientSecret "MyOAuthClientSecret"
Update-Cvent -Connection $conn -Table "Events" -Columns @("Title") -Values @("Jon Doe") -Id "cfd2c068-bdcb-4a01-8fad-280c3230a0f7"
The Where parameter can also be used to specify the primary key of the table:
Update-Cvent -Connection $conn -Table "Events" -Columns @("Title") -Values @("Jon Doe") -Where "Id = 'cfd2c068-bdcb-4a01-8fad-280c3230a0f7'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Cvent -Connection $conn -Table Events -Where "Title = 'CDATA_EVENT'" | Update-Cvent -Columns @("Title") -Values @("CDATA_EVENT 2")

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