Compartilhar via


Sample code directory

 

Applies To: Dynamics CRM 2013

The following sample code is included for Microsoft Dynamics CRM 2013 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 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 OData endpoint with JavaScript

Sample: Associate records (early bound)

Sample: Audit entity data changes

Sample: Audit user access

Sample: Authenticate users with Microsoft Dynamics CRM 2013 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: 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 QueryExpression

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 real-time workflow in code

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 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 OData endpoint with JavaScript and jQuery

Sample: Create, retrieve, update, and delete using the OData endpoint with JavaScript and jQuery

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: 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 attribute 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 the 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: Link custom attributes between series and instances

Sample: Make a report available or unavailable to organization

Sample: Manage contracts

Sample: Merge two records

Sample: More LINQ query examples

Sample: OData endpoint jQuery contact editor

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 2013

Sample: Publish a report

Sample: Qualify a lead

Sample: Query connection roles by entity type code (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 2013

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: OData endpoint jQuery 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 OData endpoint with JavaScript

Sample: Retrieve multiple with the QueryByAttribute class

Sample: Retrieve multiple with the QueryExpression class

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: RetrieveMultiple with condition operators using LINQ

Sample: Rollup goal data for a custom period against the target revenue

Sample: Rollup goal data for a fiscal period against the stretch target count

Sample: Rollup records related to a specific record

Sample: Seach for openings to schedule a resource

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 and retrieve entity images

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 2013

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 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: Windows 8 desktop modern OData app

Sample: Windows 8 desktop modern SOAP app

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

Tutorials for learning about development for Microsoft Dynamics CRM 2013