Twitter Image

The CRM 2011 SDK has been updated

Written by Stéphane Dorrekens
Thursday, 09 June 2011 09:27

The SDK for CRM 2011 has just been updated to version 5.0.4, you can download it from here.

Version 5.0.5 is scheduled for end of July, but meanwhile here's a summary of the changes  for this version.

New and updated topics

Description of changes

Microsoft_Dynamics_CRM_2011_SDK_Readme.htm

Updated the readme with new information.

SDK\Bin

Updated the assemblies for Microsoft Dynamics CRM Update Rollup 2. For Microsoft Dynamics CRM Online, updates are installed for you. For other deployment types, you can get update rollups from the Microsoft Download Center or from Microsoft Update.

SDK\Resources\ExportedRibbonXml

Moved the location of the exported ribbon definitions from SDK\SampleCode\CS\Client\Ribbon\ExportRibbonXml\ExportedRibbonXml to SDK\Resources\ExportedRibbonXml.

Updated the following topics to reflect this change:

· Ribbons Available in Microsoft Dynamics CRM

· Export Ribbon Definitions

· Walkthrough: Add a Custom Button to an Existing Group for a Specific Entity

· Walkthrough: Add a Custom Group to an Existing Tab for a Specific Entity

· Walkthrough: Add a Custom Button to an Existing Group for all Entities

· Walkthrough: Hide Ribbon Elements

SDK\Resources\Images

Added new images to this folder, which are available for use in customized applications.

SDK\Walkthroughs\Portal

Updated all three portal developer guide walkthrough solutions. For a complete list of changes, see the SDK readme file: Microsoft_Dynamics_CRM_2011_SDK_Readme.htm.

HelperCode\SystemUserProvider.cs

\VisualizationsAndDashboards\
AssignDashboardToUser.cs

\VisualizationsAndDashboards\
AssignVisualizationToUser.cs

\GeneralProgramming\EarlyBound\
BasicContextExamples.cs

\GeneralProgramming\Authentication\
ImpersonateWithOnBehalfOfPrivilege.cs

\BusinessDataModel\Marketing\
MarketingAutomation.cs

\BusinessDataModel\Goals\
OverrideGoalTotalCount.cs

\BusinessDataModel\
ScheduleAndAppointment\
QueryScheduleOfMultipleUsers.cs

\FieldSecurity\RetrieveSecuredFieldsForAUser.cs

\BusinessDataModel\Goals\ RollupAllGoalsForCustomPeriodAgainstTargetRevenue.cs

\BusinessDataModel\Goals\ RollupAllGoalsForFiscalPeriodAndStretchedTargetRevenue.cs

\GeneralProgramming\EarlyBound\SharingRecords.cs

\BusinessDataModel\Goals\UsingQueriesToTrackGoals.cs

\BusinessDataModel\BusinessManagement\
WorkingWithNegativePrices.cs

Changed the code in SystemUserProvider so that it does not attempt to create a user if the client application is connected to Microsoft Dynamics CRM Online. The changes to the SystemUserProvider class required changes to all the C# and VB samples that use that class. Only the changed C# samples are shown here for brevity. All changes are in the folders SDK\SampleCode\CS or SDK\SampleCode\VB.

SDK\SampleCode\JS\SOAPForJScript\SOAPForJScript\
Scripts\SDK.MetaData.js

Updated the SDK.MetaData.jsJScript library to address three issues:

· The DefaultFormValue property of option set attributes returned a Boolean rather than the integer value.

· The State property for StatusOptionMetadata was not returned.

· The StateOptionMetadataDefaultStatus and InvariantName properties were not returned.

SDK\SampleCode\VB\*

Added VB.NET versions of the existing C# samples.

SDK\Tools\MetadataBrowser\
MetadataBrowser_1_0_0_2_managed.zip

Updated the Metadata Browser to reflect changes to the SDK.MetaData.jsJScript library.

Active Directory and Claims-Based Authentication

Added information about the lifespan of a security token and how to refresh the token in applications that take a long time to run.

Create Custom Get Started Pane Content

Included a note that customizing the application Help content for Microsoft Dynamics CRM 2011 (On Premises) is not supported.

Create Early-Bound Entity Classes with the Code Generation Tool (CrmSvcUtil.exe)

SDK\SampleCode\CS\CrmSvcUtilExtensions

Added a sample extension for the CrmSvcUtil program that generates early-bound types for custom entities.

CrmSvcUtil.exe Extension Usage and Command-line Parameters

Removed documentation for an invalid command-line parameter for the servicecontextprefix extension.

Customize Entity Forms in Microsoft Dynamics CRM

Added Microsoft Dynamics CRM for Microsoft Office Outlook Reading Pane section to describe how form customizations apply to the reading pane.

Privileges by Entity

Privileges by Message

Added detailed reference information for each entity and message, describing the privileges required. A small percentage of these topics are still marked as coming soon.

Quick Start: A Simple Program

Helper Code: ServerConnection Class

SDK\SampleCode\CS\HelperCode\CrmServiceHelpers.cs

SDK\SampleCode\VB\HelperCode\CrmServiceHelpers.vb

Added support for saving and re-using server configurations, making it easier to run the sample code repeatedly with minimal prompts.

Sample: Invoke Duplicate Detection for Creating and Updating Records

SDK\SampleCode\CS\DataManagement\DuplicateDetection\ InvokeDuplicateDetectionForCreateAndUpdate.cs

SDK\SampleCode\VB\DataManagement\DuplicateDetection\ InvokeDuplicateDetectionForCreateAndUpdate.vb

Added a new sample demonstrating how to invoke duplicate detection in create and update operations.

Sample: Instantiate an E-mail Using a Template

SDK\SampleCode\CS\BusinessDataModel\Templates\
createemailusingtemplate.cs

SDK\SampleCode\VB\BusinessDataModel\Templates\
createemailusingtemplate.vb

Added a new sample demonstrating the use of the InstantiateTemplateRequest message.

Sample: Send an E-mail

SDK\SampleCode\CS\BusinessDataModel\
Activities\SendEmail.cs

SDK\SampleCode\VB\BusinessDataModel\
Activities\SendEmail.vb

Added a new sample demonstrating the use of the SendEmailRequest message.

Sample: Use LINQ with Late Binding

SDK\SampleCode\CS\Queries\
UseLinqWithLateBinding.cs

SDK\SampleCode\VB\Queries\
UseLinqWithLateBinding.vb

Added a new sample that shows how to use LINQ with late bound entities.

Troubleshooting Tips

Added a tip about a common exception when using the CrmSvcUtil.exe program.

Use Messages (Request and Response Classes) with the Execute Method

Pass Optional Parameters in Messages

Run Duplicate Detection

Indicated that passing the CalculateMatchCodeSynchronously optional parameter is not required any longer. The change was implemented in the Microsoft Dynamics CRM 2011 Update Rollup 1 and Microsoft Dynamics CRM Online April Service Update.

Use the REST Endpoint with Ajax and JScript Web Resources

Corrected information in the Working with Dates section and provided new information about additional tasks related to working with dates.

Write a Custom Azure-aware Plug-in

SDK\SampleCode\CS\Azure\Plug-ins

Clarified that a service endpoint ID must be passed to the plug-in at run time through