Use the sample and helper code


Updated: November 29, 2016

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

Most managed code samples provided in the Microsoft Dynamics 365 SDK that use the organization and discovery web services are using shared helper code to perform common tasks. You might find this helper code useful in applications that you write. Sample helper code can be found in the following folders in the SDK, and also by following the links provided later in this topic. Download the Microsoft Dynamics CRM SDK package.



When writing an application that uses the Microsoft Dynamics 365 SDK, you typically have to perform a number of steps to configure your application’s project. To learn more about setting up a project in Microsoft Visual Studio, or other development environment, see Start a managed code project in Visual Studio.

For more information about running the samples included in the Microsoft Dynamics 365 SDK download, see the SDK\SampleCode\Readme.docx. To view a sample application that uses the helper code and includes the required .NET references, see Run a simple program using Microsoft Dynamics 365 web services.

A non-customized early-bound types file that is named MyOrganizationCrmSdkTypes is included in the SDK download in the SampleCode\CS\HelperCode and SampleCode\VB\HelperCode folders to help get you started. However, if your organization has custom or customized entities, you should generate a new early-bound types file. For the purposes of this documentation, the generated classes are included in the global namespace. For more information, see Create early bound entity classes with the code generation tool (CrmSvcUtil.exe).

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright