Pages

Thursday, February 9, 2012

CRM 2011: Regarding not passed for Activity Sub-Grids

One of the great improvements of CRM 2011 is the ability to very quickly and easily embed sub-grids into a parent entity. However I came across an issue with regards to the activity sub-grids i.e. tasks, emails, faxes, phone calls, appointments, etc. with regards to context sensitivity.

For example, you can embed the Phone Calls sub-grid into an account entity as follows:



However, when you want to subsequently add a new phone call to the account by clicking on the sub-grid and clicking "Add New Phone Call", you would expect that the "Regarding" on the resulting phone call form would be defaulted to the account record (or whichever the parent record is) from where you navigated. After all, this is not only common sense but also how it works for every other "Related Regarding" sub-grid (at least all cases that I tried other than the aforementioned activity sub-grids). You might expect this behavior... but unfortunately you will be disappointed in this case.


Conversely, if you add an activity via one of the other form workarounds (i.e. default methods of adding an activity), the regarding is passed through. Which is all well and good, but all those approaches involve a few additional clicks not to mention that when you have an embedded sub-grid the workflow shown in the screenshot above is the most logical one to be following.



It should also be pointed out that embedding the activities as a sub-grid is the only way to have direct access to the specific activity type rather than having them co-mingled under the more generic "Activities" link. That is, the ability to add the "Phone Calls" (using the above example) to the left hand navigation links is not supported and therefore is not an alternative solution for this predicament.

I opened a ticket with Microsoft support to troubleshoot this issue and although this issue is acknowledged it seems the development team has not yet prioritized this for fixing. So it seems for the time being, we just need to live with this oversight and use one of the workarounds available i.e.:


  • Activities | Add New Activity | Phone Call
  • Add | Phone Call

Or... if the additional clicks is something that you'd prefer not to live with you can always move the activity buttons on the ribbon to the main tab.

Wednesday, February 8, 2012

Dynamics CRM Search

One feature that is still not offered out of the box as part of the Dynamics CRM offering is a cross purpose search engine. While you can effectively perform searches using Advanced Find, Quick Find, Custom Reports etc. all of those searches involve navigating to a particular area of the application and pulling up the relevant view or report. A much desired feature in many organizations is the ability to have a single search "landing page" where you can enter in your search criteria and have that search across the relevant entities in CRM. Many competitive solutions to Dynamics CRM offer such a search capability.

The Dynamics CRM Search tool is designed to fill such a gap. This solution is fairly "low tech" in that it leverages the powerful reporting capability of SSRS in order to deliver the results. And it can be configured to suit the needs of any organization. This CRM Search tool is compatible with CRM 2011 and CRM 4.0.

Below are some configuration samples to illustrate usage scenarios.

"Out of the box" deployment


When deployed out of the box this is how the CRM Search will appear. By default it is configured to search across the account, contact, lead opportunity, and case entities. As illustrated, the more search criteria specified the further the result is refined. So for example, the search criteria shown in the screenshot will return all accounts beginning with "a" along with any contacts that belong to an account beginning with "a" and have a last name beginning with "d".


Highly Modified


The search criteria can be modified to search the particular requirements of your CRM deployment. Most of the fields and search criteria represent data that do not exist in the out of the box CRM deployment.


"Search All" 


This example illustrates the ability to have a “Search All” search field. If for example, you enter “Thomp” in the Search All field – the search will run a “contains” search as follows:

  • In accounts for any accounts that have a matching name, address, contact information
  • In contacts for any contacts that have matching first name, last name, address, contact information
  • In any other entity/fields that the "search all" is configured to run against (according to your installation requirements)

The remaining fields can be used to do a more targeted search if that’s your preference


Notes search capability



This illustrates the ability to search against notes entered in the CRM database. So for example, if you remember having entered a note containing a particular phrase but cannot recall who you entered it for, you can enter it in the Notes field and have the account, contact, etc. where that note was entered returned to you.


Of course the above are just samples of how this can be configured - you can configure it to have a combination of some of the features shown or to be entirely different based on the specific requirements of your CRM installation. In addition, you are not limited to a single search console, you can create as many as necessary to meet the requirements of different departments or teams.

For more information on how to obtain a license for this tool, please visit our product page.

Tuesday, February 7, 2012

CRM 2011 Visual Ribbon Editor

A while back I wrote up a few blog posts on how to go about adding buttons to the application ribbon. Since that time, a new tool called the "CRM 2011 Visual Ribbon Editor" has been released. This tool can be downloaded from codeplex.

This tool significantly simplifies the process of adding buttons to the ribbon by providing - as the name suggests - a graphical user interface for interacting with the CRM ribbon.


This tool doesn't completely eliminate the requirement of having to understand the various ribbon components and how to go about implementing Actions, Display and Enable Rules. However one of the biggest benefits is that it does all the legwork as far as formatting the underlying XML which can be a little tricky when trying to manually configure this option.

Simple requirements - such as adding a URL link to the ribbon - can indeed be performed entirely using this tool. However more complex requirements will still require manual intervention such as writing the jscript function that the Action, Enable or Display rule may call.

In addition to this, the author of this tool also mentions that it does not cover all configuration scenarios that the ribbon XML offers and lists a number of cases that are not supported on the codeplex home page. But even in those cases, this tool provides an excellent starting point by allowing for the basic XML structure to be created.

For example, I wanted to configure the "Phone Call" button such that it appears on the MainTab of a form. To do so, I pretty much copied the definition from the "Add Phone" under the Related tab.


Before this feature can work it is necessary to also pass a parameter to the jscript function (this can be viewed by downloading the application ribbon definitions) which can not be performed currently using this tool. At this point, all that is necessary is to export the entity ribbon in question, manually configure the XML to pass the parameter, and then re-import the updated application ribbon XML.


In short, I was able to use XML visual editor to configure 90% of the ribbon component and not have to worry too much about making sure that the XML structure respected the ribbon schema definition. The remaining 10% needed be configured manually by just updating the relevant parts within the already formatted XML structure. Very useful indeed.

Monday, February 6, 2012

CRM 2011: ExportRibbonXML executable

In order to view existing Ribbon Definitions in CRM 2011 you can compile the code ExportRibbonXML source code as described here.

Alternatively you can skip this and just download the compiled version from here. Once downloaded, unzip the file and run the ExportRibbonXml.exe. When prompted fill in the connection information as shown below.




The output will be written to a sub-folder called "ExportedRibbonXml" under the folder where the application was launched from. If you are presented with the following error, make sure that the user you are running the tool with has write permissions on the folder.



The output will contain all the default ribbon definitions along with any implementation specific custom entity ribbon definitions. Being able to inspect these definitions can come in handy when customizing the ribbon.

CRM 2011: CRM Anywhere

Today Microsoft announced their next major service update code-named R8. They are dubbing this release as "CRM Anywhere" presumably to the increased accessibility, platform support and industry focus that this release is being touted to bring which includes:


  • Release of a new product called Microsoft Dynamics CRM Mobile which will provide access to all the major mobile platforms including Windows Phone 7.6, Blackberry, iPhone, iPad and Blackberry. This appears to be powered by the CWR Mobility ISV solution.
  • The long awaited compatibility with all the major browsers (IE, Safari, Firefox, and Chrome)
  • SQL Server 2012 compatibility
  • Industry Templates including Wealth Management and Non-Profit

Additional details can be viewed in the Release Preview Guide.

Wednesday, February 1, 2012

CRM 2011: Sub-grid display label not showing

I was attempting to add a sub-grid to a form but for some reason the display label was not showing even though it was set to show and was displaying in the designer view.



This definitely seems like a bug to me. However with a little bit of research I discovered a workaround solution. Basically if you change the View Selector from the "Off" option to either "Show All" or "Show Selected Views" the name will subsequently show up above the grid section.



This is not an ideal solution as you often do not want to show the View Selector for an embedded sub-grid and from a design perspective, it probably should display the way that it appears in the Designer (i.e. with the title to the left of the grid). But for the time being, this solution will have to do.





Tuesday, January 31, 2012

CRM 2011: Cannot attach a database with same name

We had a situation where we had to move the CRM database to another server. However whenever trying to re-attach the database on the new database server (I believe the same issue would have been experienced for a database restore action), I was presented with the following error message:



This was very odd because there was in fact no other database with the same name on the database server. The error message was clearly wrong. And after I clicked Ok on the above error message, a database was still  created on the server albeit a faulty one that needed to be removed before the attach/restore action could be tried again.




To troubleshoot I tried to attach the database using the command line as follows:

USE [master]
GO
CREATE DATABASE [XXX_MSCRM] ON
( FILENAME = N'E:\SqlData\XXX_MSCRM.mdf' ),
( FILENAME = N'E:\SqlLogs\XXX_MSCRM.ldf' )
 FOR ATTACH ;
GO
And once I did so the following error message was displayed which revealed the real issue that SQL was having in trying to attach the database:


A little bit of research revealed that the issue had to do with the fact that the original database was installed on SQL Server Enterprise whereas the database I was trying to restore it on was SQL Server Standard. And the following KB article describes what the issue is and how to go about resolving:

http://support.microsoft.com/kb/2567984


In short:

  • Restore the database to another SQL Enterprise environment
  • Run the script in the above KB article
  • Backup the database and restore to a SQL Standard environment