Update-D365BusinessCentral Cmdlet
Updates Microsoft Dynamics 365 Business Central data.
Syntax
Update-D365BusinessCentral [parameters]
Remarks
The Update-D365BusinessCentral cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Microsoft Dynamics 365 Business Central data.
$conn = Connect-D365BusinessCentral -OrganizationUrl "https://api.businesscentral.dynamics.com/v1.0/api/v1.0" Update-D365BusinessCentral -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-D365BusinessCentral -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-D365BusinessCentral -Connection $conn -Table Accounts -Where "Name = 'MyAccount'" | Update-D365BusinessCentral -Columns @("Name") -Values @("MyAccount 2")