Getting Current User Security roles in Silverlight Webresource- MSCRM 2011

If you are looking to get current user security roles in silverlight webresource, you can use below function for the same. I am using SilverCrmSoap library available in codeplex and SilverlightUtility that comes with CRM SDK. It will fetch all the security role based on userid,once you have security roles you can loop thorugh it and can check for any particular… Read more »

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 »