Send Email through Code using Late Bound MSCRM 2011

If you want to send mail through sdk using late bound you can use below function  private void CreateMail(IOrganizationService service,Guid _ contactid,Guid _From) { //create activityparty Entity Fromparty = new Entity(“activityparty”); Entity Toparty = new Entity(“activityparty”);  //set partyid //You can refer http://msdn.microsoft.com/en-us/library/gg328549.aspx to get acitivity party entity attribute Toparty[“partyid”]= new EntityReference(“contact”, _ contactid));  Fromparty[“partyid”]= new EntityReference(“systemuser”, _From)); //create email  and set… Read more »

Display mixed content error in IE

During one of our release we started getting bellow error, while we tried to access our custom silverlight dashboard in MS CRM 2011. we were not getting this error in our development environment, it was comming only in production environment. when I tried to search about this error I found http://msdn.microsoft.com/en-us/library/ie/ee264315%28v=vs.85%29.aspx and I enabled below setting and it worked

Microsoft Dynamics CRM 2011 New Features Book Review

Some days back I got one email from Packt Publishing to review their new book Microsoft Dynamics CRM 2011 New Features which is written by my fellow MVP Jim Wang and Darren Liu. I would like to congratulate both Jim and Darren for their wonderful book, they have done very good job.  Book chapter’s review Chapter 1: Setting Up The… Read more »

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 »