Microsoft.PowerPlatform.Dataverse.Client 0.5.10 Prefix Reserved

Install-Package Microsoft.PowerPlatform.Dataverse.Client -Version 0.5.10
dotnet add package Microsoft.PowerPlatform.Dataverse.Client --version 0.5.10
<PackageReference Include="Microsoft.PowerPlatform.Dataverse.Client" Version="0.5.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.PowerPlatform.Dataverse.Client --version 0.5.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.PowerPlatform.Dataverse.Client, 0.5.10"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.PowerPlatform.Dataverse.Client as a Cake Addin
#addin nuget:?package=Microsoft.PowerPlatform.Dataverse.Client&version=0.5.10

// Install Microsoft.PowerPlatform.Dataverse.Client as a Cake Tool
#tool nuget:?package=Microsoft.PowerPlatform.Dataverse.Client&version=0.5.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This package contains the preview of the .net core Dataverse ServiceClient. Used to connect to Microsoft Dataverse. This Package has been authored by the Microsoft Dataverse SDK team.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Microsoft.PowerPlatform.Dataverse.Client:

Package Downloads

This package contains the preview of the .net core Dynamics Messages Assembly. Used to issue commands to Dynamics Applications Installed on Microsoft Dataverse. This Package has been authored by the Microsoft Dataverse SDK team.


This package contains the preview of the .net core ServiceClient Dynamics Extensions. Used to connect to Microsoft Dataverse. This Package has been authored by the Microsoft Dataverse SDK team.


XrmFramework aims at simplifying Microsoft Dynamics 365 and Dataverse plugin, workflows development, deployment and testing


This driver helps you connect to Dataverse (CDS) API and query or execute actions against the API. This driver utilises the .net core CDS assemblies to generate the early bound classes. The authentication methods supported are OAuth, Client Secret and Certificate Thumbprint.


Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Microsoft.PowerPlatform.Dataverse.Client:

Repository Stars
Code Replica for Microsoft.PowerPlatform.Dataverse.Client and supporting nuget packages.
Version Downloads Last updated
0.5.10 38 10/22/2021
0.5.7 693 10/15/2021
0.5.5 1,170 10/5/2021
0.5.4 180 10/4/2021
0.5.2 1,449 9/24/2021
0.4.21 8,011 8/17/2021
0.4.20 4,390 7/30/2021
0.4.19 1,321 7/27/2021
0.4.12 29,378 4/28/2021
0.4.11 3,377 4/13/2021
0.4.6 4,403 3/25/2021
0.4.4 4,067 3/8/2021
0.4.3 5,662 3/5/2021

   This package is in a public preview release.
   This package is intended to work with .net full framework 4.6.2, 4.7.2 and 4.8, .net core 3.0, 3.1 and 5.0
   General Documentation is the same as CrmServiceClient and can be found here:
   Connection String Docs can be found here:
   Note: that only OAuth, Certificate, ClientSecret Authentication types are supported at this time.

Added new property "RecommendedDegreesOfParallelism".
   This property will report the recommended number of threads for communicating with Dataverse.

Changed internal dependencies to better align with Dataverse Server.
Fixed an issue with updating ManyToOneRelationship based attributes.
Fixed an issue with activity parties relationships.

Removed Sealed attribute from the Service Client Class.
Fixed an issue with null values being sent to the API causing a null exception to be raised.
Fixed missing nuget dependency for Microsoft.Identity.Client.Extensions.Msal, Nuget now properly includes that package.

Fixed a nuget dependency issue for Microsoft.Extensions.Caching.Memory
   Microsoft.Extensions.Caching.Memory, min version 3.1.8

Fixed and issue with the client being non-castable to IOrganizationServiceAsync, Client will now cast again. (Internal Report)
   Special note:
       IOrganizationServiceAsync has async methods without cancellation support. this is required for service mapping as the dataverse server does not natively support this feature.
       IOrganizationServiceAsync2 has async methods WITH cancellation support.  
       This surfaces in the client as 2 forms of each async method and is currently necessary to support internal auto generation of contracts for service communication. We will work to improve this in the future.
       Cancellation events will currently raise an OperationCancelled Exception, this can either be the topmost exception, or embedded in a DataverseException.
       Cancellation methods are 'preferred' if you need to support cancellation in your application.
Fixed an issue with External authentication type not being properly passed though to cloned clients.  (git #162)

***** Breaking Changes *****
Removed the constructor:
   public ServiceClient(OrganizationWebProxyClient externalOrgWebProxyClient, ILogger logger = null)
       Removed as we are refactoring how we will accept an external created client for internal use cases.
Contract change:
   Added Support to set token file storage location back to connection string and constructors supporting User Authentication.
   Modified DiscoverOrganizationsAsync to return a new return object called DiscoverOrganizationsResult
   Modified Exception type thrown when external authentication fail to return DataverseOperationExecption vs general exception.

Accepted suggestion to Updated logic to detect SDK runtime version for client.  Thanks to GitHub user 0xced
Updated behavior of Token refresh to reduce cache hits, Optimized token lookup for cache hits over network calls.
Added Handlers to support timeouts from AAD Token service. (GIT #148)
Added InMemory Token Cache system for S2S flows. (GIT #144)
   This pulls a new dependency on Microsoft.Extensions.Caching.Memory, min version 5.0.0
Added FileToken Storage Provider back into Client - works for User Access flows only... Does not work for S2S accounts.
Added configuration override support for setting MSAL Token Acquire Timeout, Retry Count, and MSALPIILogger
   MSAL Token Timeout control : appsetting = MSALRequestTimeoutOverride,  default is 30 seconds.
   MSAL Token Acquire retry count: appsetting = MSALRequestRetryCountOverride, default is 3.
   MSAL Allow PII in Log data: appsetting = MSALLogPII, default is false
Updated Async Implementation older SDK flow ( non-OData ) which should improve thread support. (Git #146)
Updated Internal interaction behaviors for communication to Dataverse Server
   Added temp properties to allow for field control of this if the behavior does not work as intended.
Fixed an issue where an Guid.Empty Session ID was set the server.
Fixed an issue where Create and Update Operations would not properly respect API allowed fields for create or update. (Git #163)
Fixed an issue where logical name was being used instead of Schema name for Activity parties (Git #166)

Fixed Connection Creation "Hang" behavior that could occur when trying to create a Dataverse Service Client inside a thread.
Fixed an issue with ILogger not propagating correctly when used with connection string flows.
Fixed an issue when attempting to Null a lookup that would cause a Microsoft.OData.ODataException: Does not support untyped value in non-open type error
Changed the behavior of Update message to be consistent with Organization Service Update behavior instead of an Upsert behavior.
Added compensating code to deal with a null ref issue when logging which could cause a client crash.
Added optional WebAPI support during login and solution import & export operations
Refactored ServiceClient and ConnectionService

Updated behavior of ImportSolutionAsync to leverage updated Dataverse behavior post 9.2 release.
Updated Display name for Northamerica 2 Region to reflect that it is more commonly know as GCC.
Updated Newtonsoft.Json to v11.0.2 to match server.
Fixed an issue with ActivityParty when using an Entity Array vs an EntityCollection for ActivityParties

Fixed an issue raised when updating some entities\attributes values to null.
Fixed and issue with DataTime formatting for Timezone independent, Timezone specific, and 'normal' DateTime types.
Update for Current Dataverse System Messages.

Update for Current Dataverse System Messages.
Fixed an issue where authentication could fail during throttling due to token not being refreshed on retry.
Adding Exception behaviors for all Metadata Operations.
Adding EnableAffinityCookie to allow for override of Affinity behavior when interacting with Dataverse.
   In general, users should not manipulate this property. more details can be found here:
Adding support for enhanced features for solution import.

Exposing ILogger support on all constructors and Static API commands.

Added support for related entity create as part of general "create" operation.
Updated Async Operations to return task's for async methods that were returning void's
Updated DataverseOperationException to include HttpOperationResponse, where it exists.
Fixed issue with Cloned Connections not refreshing their tokens on token expiration
Updated Logger to remove string builder property
Added Initial code for ILogger implementation. (Not exposed as of yet but coming soon)
Corrected an issue when using the Entity myEnt = new Entity(string, guid) not properly setting the primary id.

Supersedes Microsoft.PowerPlatform.Cds.Client,  Previous nuget has been retired.
***** MAJOR Breaking Changes *****
Complete renaming of CdsServiceClient for Dataverse naming.
Major differences:
   Namespace: Microsoft.PowerPlatform.Cds.Client =>  Microsoft.PowerPlatform.Dataverse.Client
   CdsServiceClient is now ServiceClient
   All methods in CdsServiceClient that had Cds in the name have been updated to remove cds Name
   Exception's have been updated to
       CdsConnectionException => DataverseConnectionException
       CdsOperationException => DataverseOperationException

Initial async implementation of SDK Client. - note this is a WORK IN PROGRESS and may not work as expected under all circumstances.
   Please report bugs or behaviors issues in the normal way
Fixes and issue with exceptions being thrown by code that is supposed to log exceptions.
Corrected issue with DateOnly data types when using CUD events.
Included additions to logging when failures occur during connection string based login. - credit to GIT:@nicknow for the suggestion of fix.

Fixed an issue where Activity Party types were not being properly processed
Fixed an issue where the incorrect format was used for Data only types.
Fixed an issue where BypassPluginExecution property on request was not being understood properly by the server.

***** Breaking Changes *****

MSAL Port completed.
   Auth processes have been ported to MSAL.
   UserID/PW flows are now enabled on .net core for login where possible ( per AAD security rules and host OS)
   Auth flow Logging capture is still under development.

Authentication constructors are now updated to remove some patterns
Removed Token Cache path from constructors and ignore on connection string at this time
   Token Cache handle support will be revisited, however if you have a pressing need, we recommend you use the external token management constructor in the mean time and self manage that.
   For now, only MSAL In-Memory support will be provided for token cache
Refactored to support Shared HTTPClientFactory for WebAPI connections to cut down on some noise for folks that are doing repeated logins.
Refactored code a bit to help with clarity on various functional areas.
Renamed/Refactored Discovery methods to as Async methods.

Rerouted all Upsert Request to use OrganizationService API.
Added new InMemory Logging Options to support returning Logs captured either as Array of Tuples or a string list.
Added new public property for OrganizationDetail Information called "OrganizationDetail" for the currently connected environment.
Added new enum for ImportSolution additional property options called "ImportSolutionProperties" - this contains valid options for additional properties for the ImportSolution handler
Fixed an issue with telemetry for the client that was using incorrect format for useragent content
Updated Core CDS Sdk assemblies

Fixed an issue with .Clone not correctly supporting adding telemetry handlers to cloned connections

Adding Switzerland Geo to Regions List.
Added support for Alternate key use on entity references as part of Create Update Delete Operations running over the webAPI.
Added concurrency support to Create Update Delete Operations running over the webAPI.

Renamed Exception CdsConnectionException to CdsClientConnectionException.  No other change to the Exception
Improved handling of cached connection retrieval failures from memory when an invalid object is returned.
Fixed a bug where a WebAPI navigation property did not match with its metadata descriptor.
Fixed Retry delay issue when making calls to the CDS WebAPI – thanks to GIT user stvonolf for the catch of this issue.
Added new Exception, CdsClientOperationException - this will be used when an exception is raised via the CDSClient when CDSClient is using WebAPI.
Added IntelliSense Doc Support
Added support for bypassing custom Plug-in Execution during SDK Operation.
   This is a special use capability that requires a specialized permission in the CDS infrastructure to use.
   Currently this is only permitted for use by users that have the System Administrator Security Role.

Fixed issue when CUD via WebAPI when entity contains a entity reference that is a polymorphic reference. ( IE customer data type )

Corrected a bug in Org request to WebAPI operation when attempting to set fields to null values.
Added initial support for in memory log capture support.

Update to internal support libraries

Fixed an issue with sovereign cloud discovery reference data that would prevent a future login control from picking the correct global discovery server.

Fixed missing ConfigureAwait on ADAL Authority acquire flow.
Added some additional logging to understand what version of ADAL is being used.
Fixed an issue with translation of Money types to WebAPI requests.

Fixed Authority property data loss post clone process
Added temp logic to run upsert requests that have anything other than string keys via the Native OrgAPI vs webAPI, this is a workaround for an open issue with the webAPI where it does not support none string key's on upsert(patch) requests that result in a create operation.
Rerouted CdsServiceClient Helpers to use WebAPI path for CUD requests.

Several updates to Create / Update / Delete operations to move the underlying features over to use the WebAPI.
Please report any bugs that you run into with this.  This has been "mostly" tested with our current test suite, however we have not full tested all data type translation at this point.

Altering Nuget Version to 3 digit semantic version
Namespace change from Microsoft.Powerplatform.xxxx to Microsoft.PowerPlatform.xxxx
Fixed an error with setting CallerId when ClientSecret Auth type is used.
   Thanks for all the bug reports on this and repro's that really helped us run it down.
Fixed a number of discovery related issue that were broken during the port.
Added new forms of DiscoveryGlobalOrganziations to allow for a token function to be passed to enabled this for use in WebSites and functions where it makes sense.
Updated several sovereign GEO's configs to reflect use of Global discovery for those GEOs
Fixed a bug in LinQ create methods that would appear on non-windows deployments.
   This would manifest as a missing method exception when trying to create a sequential guid.
Fixes a bug in using ExecuteCdsWebRequest that blocked connections using clientSecretAuth types.
Removed IOverrideAuthHookWrapper and property and replaced with a new constructor form.
   This capability was replaced with a new constructor that accepts a function pointer as a parameter to the constructor.
   This user provided function takes the form of string FunctionName (string InstanceUri),  When called, the current instance URI will be
   passed in and the function is expected to return an access token for access to that instance.
   This form allows an given instance of the CdsServiceClient to be associated with a Auth Processor vs having the auth processor at the process level.

Fixed a bug reported in .clone in .net core builds.  When cloning a connection in .net core, the system would think you were using an invalid auth type.

Known issues:
   None at this time.. Please report any issues on the GitHub Issues site.
   Fixed a Nuget Package dependency issue in Microsoft.Dynamics.Sdk.Messages
Intial Alpha release of Microsoft.Cds.Client.CdsServiceClient
   WARNING: This is an ALPHA release.
   This library is a rename and renamespace of the Microsoft.Xrm.Tooling.Connector.CrmSeriviceClient.
   If you are familiar with the CrmServiceClient,  By Renaming each occurrence of Crm to Cds, you should find that API's match up.
   Major changes from CrmServiceClient:
       This library does not support User Interactive or User Password Auth flows in .net core.
       This library does not support AD or ADFS login to OnPremise,
           to use against an onPrem instance of CDS, your instance must be configured with
           ADFS + OAuth and the application ID you wish to use registered.
       This library removes several Dynamics specific helper methods from CrmServiceClient.
           this additional methods can be found by include the nuget package Microsoft.Cds.Client.Dynamics