-
Continue reading →: Create record using OData and JQuery in CRM 2011
Hi, Below is the code snippet to create a record (i.e., Account) using OData & JQuery. //Prepare ‘Account’ object and call create function function createAccount() { //Create an object to represent an Account record and set properties var account = new Object(); // Set text field account.Name = “Rajeev Pentyala”; // Set…
-
Continue reading →: Reading Querystring using Jscript
Hi, Below is the Jscript function to parse query string (i.e., In to Parameter & Value pair) // Read querystring and returns Parameter & Value pair Array function fetchQueryStringParams() { var qrStr = window.location.search; var spQrStr = qrStr.substring(1); var arrQrStr = new Array(); // splits each of pair var arr…
-
Continue reading →: You must use the Role Management Tool to install .Net Framework Exception
Hi, Today I got below error screen when I try to install .Net 3.5 Framework SP1 on my WIN 2008 R2 server . Reason :- Windows 2008 R2 natively ships with the .NET 3.5 SP1 framework. So, it wont allow us to run the .Net 3.5 framework setup file. Workaround :- As Windows 2008…
-
Continue reading →: Fetching user security roles using Linq in CRM 2011 Plug-in’s
Hi, Below is the sample code to fetch the User’s security roles based on the “User Id” in the Plug-in’s using Linq /// <summary> /// Returns the list of User security role names /// </summary> private List<string> GetUserRoles(IOrganizationService service, Guid userId) { // Create Query Expression to fetch Role Entity var query = new QueryExpression…
-
Continue reading →: Setting default view using Plug-in’s in CRM 2011
Hi, We often get the requirement to set a default view based on some criteria (Ex – Could be based on logged in user role, etc…). We can achieve this using a Plug-in. Little insight :- When you click on an entity (i.e., ‘Contacts’ in my sample) in CRM application, In…
-
Continue reading →: How to Debug Plug-Ins in CRM
Hi, Sometimes you might get wonder (even frustrated) why the debugger is not hitting the break point in your Plug-In code file. Below are the Checklist to perform prior to start the debugging of your Plug-in assembly. Ensure that your plug-in assembly is signed (See) Rebuild the plug-in assembly Reset the IIS (i.e. Open…
-
Continue reading →: Auto numbering logic in CRM 2011
Hi, Auto numbering feature is one of the most frequently asked requirement in CRM projects and below is the sample. In my sample, I am going to generate an auto number to the each ‘Contact’ that create under a particular ‘Account’. The auto number format will be “Contact – 001, Contact – 002,….”. To achieve the above requirement, I am…
-
Continue reading →: Entities display area not getting set on Solution Import in CRM 2011
Hi, Please observe below scenario In my CRM organization “ORG – A I Created a new custom entity “new_city” and I set “Area to display” as “Workplace”. I created a new “Managed” solution “Sol – I” having the custom entity “new_city” Now In my Organization “ORG – B”, I imported the solution “Sol – I” successfully. Issue…


