When we use the remove-d365odataentity cmdlet, we do not remove a data entity; instead, we remove a record from it.
And the second proposed change to docs is related to how to save and activate the configuration.
Please find the proposed changes here:
diff --git a/d365fo.integrations/functions/remove-d365odataentity.ps1 b/d365fo.integrations/functions/remove-d365odataentity.ps1
--- d365fo.integrations/functions/remove-d365odataentity.ps1
+++ d365fo.integrations/functions/remove-d365odataentity.ps1
@@ -1,11 +1,11 @@
<#
.SYNOPSIS
- Remove a Data Entity from Dynamics 365 Finance & Operations
+ Remove a Data Entity record from Dynamics 365 Finance & Operations
.DESCRIPTION
- Removes a Data Entity, defined by the EntityKey, using the OData endpoint of the Dynamics 365 Finance & Operations
+ Removes a Data Entity record, defined by the EntityKey, using the OData endpoint of the Dynamics 365 Finance & Operations
.PARAMETER EntityName
Name of the Data Entity you want to work against
@@ -81,8 +81,10 @@
This parameters disables user-friendly warnings and enables the throwing of exceptions
This is less user friendly, but allows catching exceptions in calling scripts
.EXAMPLE
+ PS C:\> Add-D365ODataConfig -Name "UAT" -Tenant "e674da86-7ee5-40a7-b777-1111111111111" -Url "https://usnconeboxax1aos.cloud.onebox.dynamics.com" -ClientId "dea8d7a9-1602-4429-b138-111111111111" -ClientSecret "Vja/VmdxaLOPR+alkjfsadffelkjlfw234522"
+ PS C:\> Set-D365ActiveODataConfig -Name "UAT"
PS C:\> Remove-D365ODataEntity -EntityName ExchangeRates -Key "RateTypeName='TEST',FromCurrency='DKK',ToCurrency='EUR',StartDate=2019-01-13T12:00:00Z"
This will remove a Data Entity from the D365FO environment through OData.
It will use the ExchangeRate entity, and its EntitySetName / CollectionName "ExchangeRates".
@@ -119,9 +121,18 @@
It will use the "RateTypeName='TEST',FromCurrency='DKK',ToCurrency='EUR',StartDate=2019-01-13T12:00:00Z" as the unique key for the entity.
It will use the ThrottleSeed 2 to sleep/pause the execution, to mitigate the 429 pushback from the endpoint.
It will use the default OData configuration details that are stored in the configuration store.
+
+ .LINK
+ Add-D365ODataConfig
+ .LINK
+ Get-D365ActiveODataConfig
+
+ .LINK
+ Set-D365ActiveODataConfig
+
.NOTES
Tags: OData, Data, Entity, Import, Upload
Author: Mötz Jensen (@Splaxi)
When we use the remove-d365odataentity cmdlet, we do not remove a data entity; instead, we remove a record from it.
And the second proposed change to docs is related to how to save and activate the configuration.
Please find the proposed changes here: