It is my pleasure to share this news with my readers that I have been working on a book for last few months and now it is available on Packtpub.com. Microsoft Dynamics CRM 2011 Application Design is the solution to your business needs. Whether you are just starting out or are an old hand this book will provide you with… Read more »
Yesterday I got an email from my publisher to review Microsoft Dynamics CRM 2011 Customization & Configuration Certificate Guide written by my fellow MVP Neil Benson . So I am going through this book and will post my review shortly, till then stay tuned.
If you have requirement to create and attach file to notes in Ms CRM 2011 using code then this post is for you, you can use below code string strMessage=”this is a demo”; byte[] filename = Encoding.ASCII.GetBytes(strMessage); string encodedData = System.Convert.ToBase64String(filename); Entity Annotation = new Entity(“annotation”); Annotation.Attributes[“objectid”] = new EntityReference(“EntityName”,GUID); Annotation.Attributes[“objecttypecode”] = “EntityNAME”; Annotation.Attributes[“subject”] = “Demo”; Annotation.Attributes[“documentbody”] = encodedData; Annotation.Attributes[“mimetype”]… Read more »
Are you looking to access primary entity and related entity data in single query using OData then this post is for you. If we need to access related entity data, we can use expend open in our odata query, we need to specify relationship name, in below example I am fetching data from account and more address entity and relationship… Read more »
Sometime we have requirement where we need to prompt user while changing lookup value if he really wants change that value or not, especially when we need to fire some business logic on change of lookup based on it’s value. We got this requirement where we need to delete all child records when specific lookup in parent entity is changed,… Read more »
Check new features in Q4 release : http://blogs.msdn.com/b/ukcrm/archive/2012/11/16/crm-online-polaris-release-q4-2012-details.aspx
In my earlier post I have used a simple html web resource to set as configuration page and I found this post quite popular, so I thought to write another post on this. In this post I will show how can we get configuration details from xml web resource to display it in configuration page. We can use it in… Read more »
In my earlier post I have provided sample code to set different data type fields using late bound in MS CRM 2011. In this post I am going to how can we fetch value from different data type fields. Entity _Account = service.Retrieve(“account”, new Guid(“XXXXX”), new ColumnSet(new string[] { “name”, “accountcategorycode”, “new_collectiondate”, “creditlimit”, “parentaccountid”, “new_executivecommission”, “new_isbilled” })); //To fetch string… Read more »
I have seen many question in MS CRM Development where developers asking for MS CRM 2011 data type related question, like how to set lookup field, how to set/retrieve optionset value. so I thought to write code to show how we can set different data type field in MS CRM 2011. Below is the example to create account using late… Read more »
I got one requirement to get all team members based on team, so I thought to share code here so that it can help other crm developers. you can use below code private EntityCollection GetTeammembers(IOrganizationService _iService,Guid TeamID) { EntityCollection _Teammembers = null; Guid _UserId = Guid.Empty; EntityCollection col = new EntityCollection(); QueryExpression _Query = new QueryExpression(); _Query.EntityName = “systemuser”; _Query.ColumnSet… Read more »