Dela via


Use the Microsoft Dynamics 365 Web API Helper Library (C#)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Most of the Dynamics 365 Web API C# code samples described in this SDK use the Dynamics 365 Web API Helper Library to assist in performing common tasks, such as application configuration, authentication against a Dynamics 365 service, and HTTP response error handling. You might also find this helper code useful in your .NET Framework-based projects.

Obtain and use the helper library

The Dynamics 365 Web API Helper Library is distributed as the NuGet package Microsoft.CrmSdk.WebApi.Samples.HelperCode. If you are unfamiliar with downloading and installing NuGet packages in Visual Studio projects, see the section Add all required resources to your project.

Warning

This Nuget package is the authoritative source for the helper library. For your convenience, the topics in this section contain a code listing for each class in the helper library. However, these listings are not guaranteed to be complete or current, so they should not be used in projects.

In this section

Web API Helper code: Configuration classes

Web API Helper code: Authentication class

Web API Helper code: CrmHttpResponseException class

See Also

Get started with the Microsoft Dynamics 365 Web API (C#)
Start a Dynamics 365 Web API project in Visual Studio (C#)
Perform operations using the Web API

Microsoft Dynamics 365

© 2017 Microsoft. All rights reserved. Copyright