This documentation is archived and is not being maintained.

Entity Sample Code

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

This section contains sample code that demonstrates how to perform tasks on entities.

In This Section

Upload an Attachment

Learn how to upload an attachment to a note.

Download an Attachment

Learn how to download an attachment.

Route an Incident from a User to a Queue

See how to route an incident from a user's work-in-progress queue to another queue

Convert a Dynamic Entity to a System Entity

Discover how to convert a dynamic entity instance into a strongly typed entity instance.

Using Dynamic Entities

Create, retrieve, and update a contact as a dynamic entity.

Serialize and Deserialize Entities

Do standard serialization in .NET using Microsoft Dynamics CRM objects.

Deserialize XML into an Instance of BusinessEntity

Deserialize an XML representation of an entity instance into a strongly typed entity instance.

Other Resources

Data Binding Full Sample

See the SDK download package: SDK\Server\FullSample\DataBinding. This sample demonstrates how to bind the results of a retrieve or query to a Windows Forms or Web application data grid.

© 2010 Microsoft Corporation. All rights reserved.