Data8.PowerPlatform.Dataverse.Client by Data8 Ltd

<PackageReference Include="Data8.PowerPlatform.Dataverse.Client" Version="1.0.0" />

 Data8.PowerPlatform.Dataverse.Client 1.0.0

Provides a WS-Trust compatible client for connecting to on-premise IFD instances of Dynamics 365 from .NET Core. This package builds on top of Microsoft.PowerPlatform.Dataverse.Client and offers an alternative IOrganizationService implementation using WS-Trust. This allows you to connect using the URL of the organization service, username and password without any additional configuration. Because this OnPremiseClient implements the same IOrganizationService as the standard ServiceClient implementation your code can work with either as shown in the sample code below. using Data8.PowerPlatform.Dataverse.Client; using Microsoft.PowerPlatform.Dataverse.Client; using Microsoft.Xrm.Sdk; var onPrem = new OnPremiseClient("https://org.crm.contoso.com/XRMServices/2011/Organization.svc", "AD\\username", "password!"); var online = new ServiceClient("AuthType=ClientSecret;Url=https://contoso.crm.dynamics.com;ClientId=637C79F7-AE71-4E9A-BD5B-1EC5EC9F397A;ClientSecret=p1UiydoIWwUH5AdMbiVBOrEYn8t4RXud"); CreateRecord(onPrem); CreateRecord(online); void CreateRecord(IOrganizationService svc) { var entity = new Entity("account") { ["name"] = "Data8" }; entity.Id = svc.Create(entity); }

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
  <metadata>
    <id>Data8.PowerPlatform.Dataverse.Client</id>
    <version>1.0.0</version>
    <authors>Data8 Ltd</authors>
    <license type="expression">MIT</license>
    <licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
    <projectUrl>https://github.com/Data8/DataverseClient</projectUrl>
    <description>Provides a WS-Trust compatible client for connecting to on-premise IFD instances of Dynamics 365 from .NET Core.

This package builds on top of Microsoft.PowerPlatform.Dataverse.Client and offers an alternative IOrganizationService implementation using WS-Trust.
This allows you to connect using the URL of the organization service, username and password without any additional
configuration.

Because this OnPremiseClient implements the same IOrganizationService as the standard ServiceClient implementation
your code can work with either as shown in the sample code below.

using Data8.PowerPlatform.Dataverse.Client;
using Microsoft.PowerPlatform.Dataverse.Client;
using Microsoft.Xrm.Sdk;

var onPrem = new OnPremiseClient("https://org.crm.contoso.com/XRMServices/2011/Organization.svc", "AD\\username", "password!");
var online = new ServiceClient("AuthType=ClientSecret;Url=https://contoso.crm.dynamics.com;ClientId=637C79F7-AE71-4E9A-BD5B-1EC5EC9F397A;ClientSecret=p1UiydoIWwUH5AdMbiVBOrEYn8t4RXud");

CreateRecord(onPrem);
CreateRecord(online);

void CreateRecord(IOrganizationService svc)
{
  var entity = new Entity("account")
  {
    ["name"] = "Data8"
  };
  
  entity.Id = svc.Create(entity);
}</description>
    <releaseNotes>First release</releaseNotes>
    <copyright>Copyright © 2021 Data8 Limited</copyright>
    <readme>README.md</readme>
    <repository url="https://github.com/Data8/DataverseClient" />
    <dependencies>
      <group targetFramework=".NETCoreApp3.1">
        <dependency id="Microsoft.IdentityModel.Protocols.WsTrust" version="6.8.0" exclude="Build,Analyzers" />
        <dependency id="Microsoft.PowerPlatform.Dataverse.Client" version="0.5.10" exclude="Build,Analyzers" />
        <dependency id="System.ServiceModel.Federation" version="4.9.0" exclude="Build,Analyzers" />
      </group>
    </dependencies>
  </metadata>
</package>