Compartilhar via


Use the sample and helper code

 

Applies To: Dynamics CRM 2013

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.

SDK\SampleCode\CS\HelperCode

SDK\SampleCode\VB\HelperCode

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 2013 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).

See Also

Write applications and server extensions
Best practices for developing with Microsoft Dynamics CRM 2013
Helper code: ServerConnection class
Helper code: DeviceIdManager class
Helper code: SystemUserProvider class
Helper code: Enumerations for option sets
Sample code directory
Assemblies included in the Microsoft Dynamics CRM SDK 2013
Use Microsoft Dynamics CRM 2013 services in code