Cmdlets for Microsoft Dynamics 365

Build 24.0.9060

Remove-Dynamics365 Cmdlet

Parameters   Output Objects  

Deletes Microsoft Dynamics 365 data.

Syntax

Remove-Dynamics365 [parameters]

Remarks

The Remove-Dynamics365 cmdlet allows you to use a syntax similar to SQL DELETE statements to delete Microsoft Dynamics 365 data.

$conn = Connect-Dynamics365 -OrganizationUrl "https://myaccount.operations.dynamics.com/" -Edition "Sales"
Remove-Dynamics365 -Connection $conn -Table "GoalHeadings" -Id "'test'"
The Where parameter can also be used to specify the primary key:
Remove-Dynamics365 -Connection $conn -Table "exTablePowershell;" -Where "GoalHeadingId = 'test'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-Dynamics365 -Connection $conn -Table GoalHeadings -Where "Name = 'MyAccount'" | Remove-Dynamics365

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