I was getting an error when I ran a workflow today. I had created a workflow which automatically converted an incoming email to a support quote into a Case and emailed back the person to notify them their email had been received and was being looked into.
I was sure CRM could do this functionanity but had never actually done it.
The workflow was being triggered when the email came in, the return email was firing but the case was erroring and not being created.
Workflow paused due to error: Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.TypeInitializationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1B235E4DDetail:
<OrganizationServiceFault xmlns:i=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts”>
<ErrorDetails xmlns:d2p1=”http://schemas.datacontract.org/2004/07/System.Collections.Generic” />
<Message>System.TypeInitializationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #1B235E4D</Message>
<ErrorDetails xmlns:d3p1=”http://schemas.datacontract.org/2004/07/System.Collections.Generic” />
<Message>System.UnauthorizedAccessException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4E51CD6F</Message>
<InnerFault i:nil=”true” />
<TraceText i:nil=”true” />
<TraceText i:nil=”true” />
I had a look at the tracing problems and figured out a plugin was being run. This plugin had been upgraded from CRM 4 to CRM 2011. When I disabled the plugin then I could create a Case entity without any problems.
so if you get any errors like this in CRM 2011 then have a look to see if any plugins or workflows which have been upgraded from CRM 4 are running in the background.
This is probably something you will need to do at some point. You want to validate a page and if it doesn’t fit certain criteria then the form should not be saved until the user has met your criteria.
event.returnValue = false;
Tanguy the CRM tool guy (and CRM MVP) put something very interesting in the comments but I thought I would promote it to this very small blog post
The new method in CRM 2011 is the following one:
preventDefault : Cancels the save operation, but all remaining handlers for the event will still be executed.
I’m sure many Microsoft dynamic gold/silver partners will over the next few years migrate over to Office 365 and Microsoft’s cloud offerings.
One reason for this is you get free licences, another reason is Microsoft usually insist it’s gold partners use the latest versions of Microsofts offering.
The reality is having free servers for sharepoint, office, CRM is pretty useful, so both sides seem to benefit.
So it was with interest I noticed that the latest update of the CRM 2011 SDK – CRM 2011 SDK version 5.0.8 had a whole section on Office 365.
I was curious how Office 365 was going to work with companies active directory setup but I got a better idea after reading the Single Sign on roadmap. Basically it seem a case of getting Active Directory Federation Services 2.0 up and running and this syncs your active directory and Office 365.
There is quite a lot of documentation in this release
- Microsoft Dynamics CRM Online Integration with Office 365
- Provides an overview of accessing Microsoft Dynamics CRM Online in the cloud as part of Microsoft Office 365.
- Authenticate Office 365 Users with Microsoft Dynamics CRM Online Web Services
- Provides information about how applications can connect to the Microsoft Dynamics CRM Online web services hosted in the cloud.
- Sychronized Users in Microsoft Dynamics CRM Online and Office 365
- Provides information about how to write applications that provision system user accounts for Microsoft Dynamics CRM Online.
- Sample: Authenticate Users with Microsoft Dynamics CRM Web Services
- Provides sample code that demonstrates how to authenticate Microsoft Office 365 users with Microsoft Dynamics CRM Online and make web services calls.
I was reading it just to be nosey really. I think it will be a while before I need to write any code using Office 365 but it shows that Microsoft are going to push this big time and are aiming to integrate Office 365 with CRM online.
Microsoft has a released an updated to CRM 2011 SDK.
You can download the latest version here
The full release details can be found in the release history here
interesting new features in the release are
- Updated binaries for the Portal developer toolkit and developer extensions. New features include support for authenticating portal users through the Windows Azure Access Control Service.
- Added topics for Microsoft Office 365 integration, access, check it out here
- Refreshed the User Interface Style Guide to include UI specification for the Activity Feeds feature and the Windows Phone application
- Added an important security alert and new information about Office 365 authentication. Active Directory and Claims-Based Authentication
- Added a new topic to provide guidance about tactics to provide support for multiple languages for all types of solution component. Create Solutions that Support Multiple Languages
- Included the Site Map Editors section to include links to applications available to streamline editing the SiteMap
- Added the Display a View in the Application Navigation using Site Mapsection to provide information about how to configure the SiteMap to show a specific view for an entity.
- Lots more sample code and