Skip to main content

Posts

Showing posts from 2011

CRM 2011 SDK 5.0.8 Released

Microsoft released the CRM 2011 SDK version 5.0.8!  You can find it here:http://www.microsoft.com/download/en/details.aspx?id=24004.  Here's a list of the updates in this release: http://msdn.microsoft.com/en-us/library/hh547453.aspx.

Some key updates include:

Information about Office 365 integrationSupport for multiple languagesNew sample for entity serializationNew sample for auditing user access

Sample Win 8 App: CRM 2011 Metro Style Contacts

I just got back from BUILD and I am very excited about the new possibilities of Windows 8 Metro style apps.  I was very eager to get my feet wet and see how easy it would be to pull records from CRM 2011 using HTML 5 and JavaScript and here is the result.

Disclaimer:  This is just a sample application and is not intended as a full working app.  This sample will NOT work with CRM Online and requires the device to have access to the on-premise CRM.  When the app loads it will prompt for credentials to the CRM organization.  To get around these limitations, a proxy service would need to be built to interface with CRM.

Notes:

Windows 8 Developer Preview and Visual Studio 11 Express for Developer Preview were used to create this Windows 8 app (http://msdn.microsoft.com/en-us/windows/apps/br229516).  The source code for this solution can be found at http://crm2011metrocontacts.codeplex.com/.This application will pull from the fullname, jobtitle, address1_line1, address1_city, address1_state…

BUILD

I'm very excited to be heading to BUILD next week!    It'll be my first time in California and my first time at a major development conference.  Hopefully the rumors of a Windows 8 tablet are true - http://thisismynext.com/2011/09/08/samsung-windows-8-tablet-build-developers-free-quad-core-arm/.

The session topics have been top secret so far but it's no secret that there will be a lot of talk about UI designing and HTML 5.  I'm excited to bring back some ideas to integrate with future CRM projects!

Stop by next week for an update!

CRM 2011 Help Visor Error

I've seen a few people on the CRM forums having an issue with the Getting Started Pane/Help Visor in CRM 2011.  It seems like the problem occurs when you install CRM on one port and then move it to a different port.

Here's the solution posted by xAirrick on this thread - http://social.microsoft.com/Forums/en/crm/thread/9399069a-8b7c-4bbe-ae5a-972faa0f007c

"We saw the the same problem with an CRM 2011 install.  Initially installed on http/port 80 and then we moved to https/port 443 but the help/getting started was still pointing to http/80.

There is a ConfigSettings table in MSCRM_CONFIG which has a column named HelpServerUrl which was still referencing http.  I changed this and did an iisreset and it resolved the problem."

CRM 2011 Holiday Retrieval

Holidays in CRM are stored in the CalendarRules entity but unfortunately Retrieve and RetrieveMultiple messages are not supported for this entity.  Below is a snippet of code that will help to find the CalendarId that contains the holidays and how to retrieve the individual holidays themselves.

           var org = (from o in Context.OrganizationSet
                          select o).FirstOrDefault();

            var businessClosureCalendarId = org.BusinessClosureCalendarId.Value;
            var businessClosureCalendar = (from c in Context.CalendarSet
                                           where c.CalendarId == businessClosureCalendarId
                                           select c).FirstOrDefault();

            var calendarRules = businessClosureCalendar.CalendarRules;

Enjoy!

CRM 2011 ConnectionDialog

The CRM 2011 SDK contains a really helpful way to connect to CRM using the variety of connection types that CRM offers.

This hidden gem is a WPF control called ConnectionDialog and it can be found in the Microsoft.Xrm.Client.dll.  The SDK lists the ConnectionDialog class but it doesn't contain any examples of how to implement it so I'm providing the code I used to get it to work.

First I create the ConnectionDialog and then Activate it so it will bring the window to the foreground:

            ConnectionDialog dialog = new ConnectionDialog();
            dialog.Activate();

Then you can either show the window modeless or modal.  I chose to show it as modal and capture whether the User cancelled out without entering connection information:


            var result = dialog.ShowDialog();
            if (result == true)
            {
            }

If the User completed the connection wizard then the result will be set to true and then we can use the ConnectionString on the dialog …