The Hsl.Xrm.Sdk provides helpers for interacting with the Common Data Service (CDS) using .NET Code. Check out our articles on details on how to get started:

    • Getting Started with Hsl.Xrm.Sdk Plugin Development
    • Most Useful Extension Methods - Helper methods to speed up development
    • Introduction to Hsl.Xrm.Sdk.Client - External connections/integrations to Dataverse
    • Introduction to IXrmContext - Writing code that runs will both inside and outside plugins

    The code is broken down into the following assemblies:

    Hsl.Xrm.Sdk

    • Provides helpers and extension methods for Xrm classes like Entity.GetFieldValue
    • SettingsManager provides helpers for retrieving Hsl - Settings records.
    • IXrmContext provides a standard context that can be used both from plugin or other code.

    Hsl.Xrm.Sdk.Client

    • Provides helpers for connecting to CDS externally (as opposed to a plugin).
      • Provides the ability to make async calls to the OrganizationService if using App Authentication. This will generally lead to better performance/scaling. See the section Avoid Blocking Calls of the ASP.NET Core Performance Best Practices
      • Provides the ability to cycle through multiple different credentials.

    Hsl.Xrm.Sdk.Plugin

    Helpers for writing plugin code.

    Back to top Hsl.Xrm.Sdk