Category Archives: MS CRM 2011

Get Parent Customer ID based on contact id

Requirement: Sometime we have requirement to get contact’s parent customer id. Solution: We can use REST retrieve method where we can pass record ID and get details from entiy function ParentCustomerID(ContactId) { var context = Xrm.Page.context; var serverUrl = context.getServerUrl(); //Update: in MS CRM 2013 or 2015 you need to use getClientUrl() instead of getServerUrl() var ODataPath = serverUrl +… Read more »

Are you interested in your connection list ??

If you are a sales person and using MS CRM 2011, I am sure you will be interested in your connection lists, so that you can easily associated/disassociate yourself with MS CRM records like account contact.  So how can you see your connection through OOB way, you need to follow below steps: Navigation Setting->Administration->Users->select your record and open it. Navigate… Read more »

A managed solution cannot overwrite the SavedQuery component with Id=xxxx-xxx-xxx-xxx-xxxx.. Error

Are you getting below error when trying to import managed solution exported from your dev environment where Activity feed is configured. A managed solution cannot overwrite the SavedQuery component with Id=xxxx-xxx-xxx-xxx-xxxx  which has an unmanaged base instance.The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged SavedQuery component on the target system, and… Read more »

MS CRM 2011 Technical Interview Question Part -1

I have seen many times, where CRM developers asking for common interview question in CRM development forums. I am writing this post to collect some common question on MS CRM technical side that can crm developers community Explain some new features in  MS CRM 2011. What are the different webservice available in MS CRM 2011. Which service can be used… Read more »

Getting Current User Date and Time Format setting using Javascript MS CRM 2011

If you are looking to get current user Date and Time format you can use below code for the same function RetrieveUserSettingRecord() {  var context;  var serverUrl;  var ODataPath; context = Xrm.Page.context; //get context  serverUrl = context.getServerUrl();  ODataPath = serverUrl +“/XRMServices/2011/OrganizationData.svc”;  var UserID = Xrm.Page.context.getUserId();  //get current user id from context  var RetrieveUserSetting = new XMLHttpRequest(); RetrieveUserSetting.open(“GET”, ODataPath + “/UserSettingsSet(guid’” +… Read more »

Show Loading message during function execution in CRM Form

I found one question in CRM Development form where user asked to show some processing message during long function execution, we have done this in many projects, so I thought to write this post so that it can be help CRM developers. if you are doing some processing or calling any webservice which is taking time to execute and you want to… Read more »

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 »