-
Continue reading →: Handling Tab click event in CRM 2011
Hi, We can fire our own Jscript function on CRM tab click. Below are the steps How to get ID of Crm Form Tab :- Get the ID of the ‘Tab’, using IE browser Developer Tool (i.e., Click F12) (See image above) Code :- Attach “onclick” event handler on page…
-
Continue reading →: Disabled fields in Bulk Edit Form – CRM 2011
Hi, In CRM, We can edit multiple records (i.e., Bulk Edit) at a time. To do bulk edits we have to follow below steps Select multiple records from the view (or) Associated view Click on “Edit” button on the Ribbon – In CRM 4.0 and older UR’s of CRM 2011, once…
-
Continue reading →: “Plug-in assembly does not contain the required types or assembly content cannot be updated”- CRM 2011
Hi, You may get this exception when you try to update the plug-in assembly using Plug-In registration tool. Reasons:- When you change a class name inside the plugin assembly and try to update the plug-in assembly using Plug-in registration Here is another interesting scenario that could lead to the…
-
Continue reading →: Check User Security Role in CRM 2011 using JScript
Hi, To use ODATA service in CRM 2011 you need two resource files json2.js JQuery.js Add these 2 files As Web resources in CRM System & As Libraries to the “Entity” which you are calling OData Service Below is the code to check the current user’s Security Role using JScript & OData Service //Pass…
-
Continue reading →: Sending an Email using CRM 2011 Plug In
Hi, In one of my recent requirements, I had to send an Email using Plug-in (Late Binding). Below is the code snippet. private void SendEmail(IOrganizationService service, Guid recieverUserId, Guid senderUserId, Guid regardingObjectId, string emailBody, string emailSubject) { Entity email = new Entity(); email.LogicalName = “email”; //Set regarding object property (i.e. The…
-
Continue reading →: Assign record (i.e., Change Owner) using CRM 2011 Plug-In
Hi, In CRM, we cant update the “Owner” field like any other field, Assign or Changing the owner in CRM need’s an explicit service request (i.e., AssignRequest) This is the code to “Assign” a record to other user in Plug-In public void Execute(IServiceProvider serviceProvider) { IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); IOrganizationServiceFactory…
-
Continue reading →: “$ is undefined” error while calling OData Service using JQuery & CRM 2011
Hi, In CRM 2011, you might have experienced “$ is undefined” error, while calling OData Service using JQuery. Reason’s: – JQuery native support is not available in Microsoft CRM 2011. This was the exact reason why the Javascript was unable to recognize ‘$’ symbol. Fix:- The easiest way to get this…
-
Continue reading →: [Async_ExceptionOccurred] error with “CRM 2011 OData Query Designer”
Hi, When you try to run “CRM 2011 OData Query Designer” tool, you may come up with the “Asynchronous Error” as above. Reason: – This is the Silver light Cross – Domain issue (Since, OData Query Designer built using Silver Light) Fix: – Instead of using “http://localhost/org_name/main.aspx” to browse…
-
Continue reading →: Audit issue after upgrade to CRM 2011
Hi, Recently when i upgrade my solution from CRM 4.0 to CRM 2011, I got an exception with CRM 2011 OOB “Audit” feature (i.e., When I clicked on ‘Audit History’ link on one of the audit enabled entity’s CRM Form). When I verify the Event Viewer (i.e., Application log) for error…


