Category Archives: MS CRM 2011

Setting Default Unit in Product form using Javascript

I have seen this question in CRM development forum, where user asked how to set ‘Default Unit’ using javascript, so I wrote below function to do the same function SetDefaultUnit() { if(Xrm.Page.ui.getFormType() == 1) //Check form type { var number = 1; var filter = “/UoMScheduleSet?$select=Name,UoMScheduleId&$filter=Name eq ‘Default Unit’”;   //Make sure you have created ‘Default Unit’ record RetrieveUnit(filter); } }… Read more »

A Service in a cross-domain way without a proper cross-doman Error

In My silverlight webresourc I was consuming WCF component to fetch data from external database. when I deployed this webresource to CRM 2011, I got below error In order to solved this issue I placed crossdomain.xml and clientaccesspolicy.xml in root folder of my WCF component  “C:inetpubwwwroot” you can refer http://msdn.microsoft.com/en-us/library/cc197955%28v=vs.95%29.aspx for more details on crossdomain and clientaccesspolicy xml. Hope it will help… Read more »

The type or namespace name 'Workflow' does not exist in the namespace

Today when I tried to open MS CRM 4.0 plugin registration tool in VS 2010, as usual it asked me upgrade the solution and when I opened after upgrade, after adding web reference I tried to build project and I got below error Error      1              The type or namespace name ‘Workflow’ does not exist in the namespace ‘System’ (are you… Read more »

Step By Step integrating Bing Maps in MS CRM 2011

In this post I am going to show, how easily we can integration bingmap in MS CRM 2011. I am going to create a html webresource which will show account’s city location on bing maps based on city address. Here are the steps to implement the same First steps is to get Bingmap developers key. Create an html page and… Read more »

"MenuSections can only have children of type MenuItem, Gallery or GroupPopup" Error

When I was trying to create a menu in MS CRM 2011 ribbon and  I set DisplayMode=”Default” for menuselection I got this error, and when I tried to search this error in I found http://msdn.microsoft.com/en-us/library/gg334378.aspx, According to SDK :- “You may get the following error “MenuSections can only have children of type MenuItem, Gallery or GroupPopup.” when viewing a Ribbon… Read more »

Adding Convert Email To Task in Email Ribbon MS CRM 2011

Today I saw one thread in CRM Development form to create a button in email ribbon to task from current email activity. So thought to create the same. In this post I am going to create a button in email ribbon to create task from email. you can use below code for the same <RibbonDiffXml>         <CustomActions>           <CustomAction Id=”EmailToTask” Location=”Mscrm.Form.email.MainTab.Convert.Controls._children”… Read more »

Create custom filtered lookup to filter records based on start and end date in ms crm 2011

MS CRM 2011 provides us facility to create custom filtered lookup on the fly. So in this post I am going to explain how we can create a custom filtered lookup based on start and end date. Let say we have two entities Entity A and Entity B, having relationship N:1 (A:B) and entity A have two attributes start Date and… Read more »