Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Sample Code Directory

[Applies to: Microsoft Dynamics CRM 2011]

The following sample code is included for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online.

 

Helper Code: DeviceIdManager Class

Helper Code: SystemUserProvider Class

Helper Code: ServerConnection Class

Sample: Access the Discovery Service

Sample: Add a Deployment Administrator (PowerShell)

Sample: Add a Record to a Queue (Early Bound)

Sample: Assign a Chart to Another User

Sample: Assign a Queue to a Team (Late Bound)

Sample: Assign a Queue to a Team (Early Bound)

Sample: Assign a Record to a New Owner

Sample: Assign a Record to a Team

Sample: Assign a User-Owned Dashboard to Another User

Sample: Associate a Security Role to a Team

Sample: Associate a Security Role to a User

Sample: Associate and Disassociate Records Using the REST Endpoint with JavaScript

Sample: Associate and Disassociate Records Using the REST Endpoint with Silverlight

Sample: Associate Records (Early Bound)

Sample: Audit Entity Data Changes

Sample: Audit User Access

Sample: Authenticate Users with Microsoft Dynamics CRM Web Services

Sample: Azure Aware Custom Plug-In

Sample: Azure Aware Custom Workflow Activity

Sample: Basic Plug-In

Sample: Book an Appointment

Sample: Bulk Delete Exported Records

Sample: Bulk Delete Records That Match Common Criteria

Sample: Calculate a Credit Score with a Custom Workflow Activity

Sample: Clean Up History for a Queue (Early Bound)

Sample: Close an Incident

Sample: Collaborate with Activity Feeds

Sample: Complex LINQ Queries

Sample: Configure Claims (PowerShell)

Sample: Configure Email for a Queue (Early Bound)

Sample: Configure IFD (PowerShell)

Sample: Configure Web Address Settings (PowerShell)

Sample: Convert a Fax to a Task

Sample: Convert an Appointment to a Recurring Appointment

Sample: Convert an Opportunity to a Quote (Early Bound)

Sample: Convert Queries Between Fetch and Query Expression

Sample: Create a Connection (Early Bound)

Sample: Create a Connection Role (Early Bound)

Sample: Create a Custom Activity

Sample: Create a Custom Activity Entity

Sample: Create a Custom Workflow Activity

Sample: Create a Global Option Set

Sample: Create a LINQ Query

Sample: Create a Process Using a Template

Sample: Create a Queue (Early Bound)

Sample: Create a Reciprocal Connection Role (Early Bound)

Sample: Create a Workflow in Code

Sample: Create an Email Using a Template

Sample: Create an On-Premises User

Sample: Create an Opportunity (Early Bound)

Sample: Create an Organization (PowerShell)

Sample: Create an Organization using an Asynchronous Deployment Request

Sample: Create and Retrieve Entity Relationships

Sample: Create and Retrieve Outlook Filters

Sample: Create and Update an Emailable Entity

Sample: Create and Update Entity Metadata

Sample: Create and Update Records with Related Records (Early Bound)

Sample: Create Dependent OptionSets (Picklists)

Sample: Create, Retrieve, Update and Delete (Late Bound)

Sample: Create, Retrieve, Update and Delete a Dashboard

Sample: Create, Retrieve, Update, and Delete Records (Early Bound)

Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with JavaScript

Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with JavaScript and jQuery

Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with Silverlight

Sample: Create, Retrieve, Update, and Delete a Chart

Sample: Create, Retrieve, Update, and Delete a Dialog

Sample: Create, Retrieve, Update, and Delete a Recurring Appointment

Sample: Create, Retrieve, Update, and Delete a SharePoint Location Record

Sample: Create, Retrieve, Update, and Delete an Email Attachment

Sample: Delete a Queue (Early Bound)

Sample: Detect Multiple Duplicate Records

Sample: Detect Solution Dependencies

Sample: Determine Whether a User has a Role

Sample: Disable a User

Sample: Display the Top X Values

Sample: Distribute a Quick Campaign

Sample: Distribute Campaign Activities to Dynamic and Static Lists

Sample: Distribute Campaign Activities to Qualified Marketing List

Sample: Download Report Definition

Sample: Dump Attribute Metadata to a File

Sample: Dump Atttribute Picklist Metadata to a File

Sample: Dump Entity Metadata to a File

Sample: Dump Entity Privilege Information to a File

Sample: Dump Entity Relationship Information to a File

Sample: Dump Global Option Set Information to a File

Sample: Enable Document Management for Entities

Sample: Enable Duplicate Detection and Retrieve Duplicates

Sample: Enable Field Security for an Entity

Sample: End a Recurring Appointment Series

Sample: Execute a Workflow

Sample: Execute Multiple Requests

Sample: Export and Import a Data Map

Sample: Export Ribbon Definitions

Sample: Fulfill a Sales Order

Sample: Get Report History Limit

Sample: Impersonate Using the ActOnBehalfOf Privilege

Sample: Import Data Using Complex Data Map

Sample: Import Files as Web Resources

Sample: Install or Remove Sample Data

Sample: Invoke Duplicate Detection for Creating and Updating Records

Sample: Limit the Number of Items Displayed in a Chart

Sample: Link Custom Attributes Between Series and Instances

Sample: Make a Report Available or Unavailable to Organization

Sample: Make a Report Context-Sensitive

Sample: Manage Contracts

Sample: Merge Two Records

Sample: More LINQ Query Examples

Sample: One-Way Listener

Sample: Override Goal Total Count and Close the Goal

Sample: Pass Multiple Values to a Web Resource Through the Data Parameter

Sample: Process Quotes, Sales Orders and Invoices

Sample: Promote an Email Message to Microsoft Dynamics CRM

Sample: Publish a Report

Sample: Qualify a Lead

Sample: Query Connection Roles by Entity Type Code (Early Bound)

Sample: Query Connections by a Record (Early Bound)

Sample: Query Connections by Reciprocal Roles (Early Bound)

Sample: Query Metadata and Detect Changes

Sample: Query the Working Hours of a User

Sample: Query the Working Hours of Multiple Users

Sample: Queue Listener

Sample: Quick Start for Microsoft Dynamics CRM

Sample: Reassign All Records

Sample: Release a Queue Item to the Queue Using (Early Bound)

Sample: Remove a Role for a User

Sample: Reschedule and Cancel a Recurring Appointment

Sample: REST Endpoint jQuery Contact Editor

Sample: REST Endpoint Silverlight Contact Editor

Sample: REST Listener

Sample: Retrieve Absolute URL and Site Collection URL of a Location Record

Sample: Retrieve All Charts Attached to an Entity

Sample: Retrieve an Opportunity (Early Bound)

Sample: Retrieve Email Attachments for an Email Template

Sample: Retrieve Entity Metadata Using JavaScript

Sample: Retrieve Field Permissions

Sample: Retrieve Field Sharing Records

Sample: Retrieve License Information

Sample: Retrieve Multiple Records Using the REST Endpoint with JavaScript

Sample: Retrieve Multiple Records Using the REST Endpoint with Silverlight

Sample: Retrieve Multiple with Query By Attribute

Sample: Retrieve Multiple with Query Expression

Sample: Retrieve Records from an Intersect Table

Sample: Retrieve the Roles for an Organization

Sample: Retrieve Time Zone Information

Sample: Retrieve with One-To-Many Relationship

Sample: Retrieve, Update and Update Advanced Settings with the Deployment Service

Sample: RetrieveMultiple with Condition Operators Using LINQ

Sample: Roll Up Goal Data for a Custom Period Against the Target Revenue

Sample: Roll Up Goal Data for a Fiscal Period Against the Stretch Target Count

Sample: Rollup Records Related to a Specified Record

Sample: Schedule a Resource

Sample: SDK.AttributeSamples.js

Sample: SDK.AttributesCollectionSamples.js

Sample: SDK.ContextSamples.js

Sample: SDK.ControlSamples.js

Sample: SDK.EntitySamples.js

Sample: SDK.FormItemSamples.js

Sample: SDK.FormSelectorSamples.js

Sample: SDK.NavItemSamples.js

Sample: SDK.NavItemsCollectionSamples.js

Sample: SDK.SectionSamples.js

Sample: SDK.TabCollectionSamples.js

Sample: SDK.TabSamples.js

Sample: SDK.UISamples.js

Sample: Search and Retrieve Articles

Sample: Send an Email

Sample: Send an Email Using a Template

Sample: Send Bulk Email and Monitor Results

Sample: Serialize and Deserialize an Entity Instance

Sample: Set Negative Prices in Opportunities, Quotes and Sales Orders

Sample: Set the State of a Workflow

Sample: Share a Queue (Early Bound)

Sample: Share Records Using GrantAccess, ModifyAccess and RevokeAccess Messages

Sample: Simplified Connection Quick Start using Microsoft Dynamics CRM

Sample: Specify a Queue Item to Work On (Early Bound)

Sample: Two-Way Listener

Sample: Update a Connection Role (Early Bound)

Sample: Update Next Birthday Using a Custom Workflow Activity

Sample: Upload, Retrieve, and Download an Attachment

Sample: Use Aggregation in FetchXML

Sample: Use Deployment Service Messages

Sample: Use FetchXML with a Paging Cookie

Sample: Use LINQ with Late Binding

Sample: Use Outlook Methods

Sample: Use Rollup Queries to Track Goals

Sample: Use the Organization Service Context

Sample: Validate an Appointment

Sample: Validate and Execute a Saved Query

Sample: Validate Record State and Set the State of the Record

Sample: Web Access from a Sandboxed Plug-In

Sample: Web Resource Utility

Sample: Work with Activity Party Records

Sample: Work with Attributes

Sample: Work with Global Option Sets

Sample: Work with Solutions

Sample: Work with Views

See Also

Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.