Cmdlets for Microsoft Dataverse

Build 23.0.8839

Update-CDS Cmdlet

Parameters   Output Objects  

Updates Microsoft Dataverse data.


Update-CDS [parameters]


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

$conn = Connect-CDS -OrganizationUrl "" -OAuthClientId "clientid" -OAuthClientSecret "secret"
Update-CDS -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Id "'00000000-0000-0000-0000-000000000000'"
The Where parameter can also be used to specify the primary key of the table:
Update-CDS -Connection $conn -Table "Accounts" -Columns @("Name") -Values @("Jon Doe") -Where "AccountId = ''00000000-0000-0000-0000-000000000000''"
The primary key can also be passed to the cmdlet along the pipeline:
Select-CDS -Connection $conn -Table Accounts -Where "Name = 'MyAccount'" | Update-CDS -Columns @("Name") -Values @("MyAccount 2")

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