Use the sample and helper code
Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online
Most managed code samples provided in the Microsoft Dynamics CRM 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 CRM 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 CRM 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 CRM web services.
A non-customized early-bound types file that is named
MyOrganizationCrmSdkTypes is included in the SDK download in the
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).
TasksHelper code: ServerConnection class
Helper code: DeviceIdManager class
Helper code: SystemUserProvider class
Helper code: Enumerations for option sets
ConceptsBest practices for developing with Microsoft Dynamics CRM
Sample code directory
Assemblies included in the Microsoft Dynamics CRM SDK
Use Microsoft Dynamics CRM services in code
Other ResourcesWrite applications and server extensions
Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.