-
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…
-
Continue reading →: Machine hangs up when you put a ‘debugger;’ in jScript “OnChange” event
Hi, While debugging a Jscript file ,Sometimes you may come across the situation where your machine gets hanged and it won’t even allow you start ‘Task Manager’ to kill the process. It happens, if you have the similar scenario If you put a ‘debugger;’ command in ‘onChange’ event of Dropdown…
-
Continue reading →: Sitemap “Settings groups” display as “Unknown” after an upgrade from CRM 4.0 to CRM 2011
Hi, Recently when i did an upgrade from CRM 4.0 to CRM 2011 by restoring CRM 4.0 DB, I got “Settings groups” display as “Unknown” (Refer image above) – To fix this issue we have to modify the “Sitemap” by exporting it in a solution, and follow below steps Open the…
-
Continue reading →: Adding “Notes” to the “Quote” progrmatically in CRM 2011
//Instantiate ‘Entity’ and set the ‘LogicalName’ to “annotation” Entity objNotes = new Entity(); objNotes.LogicalName = “annotation”; //Set ‘Subject’ and ‘notetext (i.e.,Body)’ properties objNotes.Attributes.Add(“subject”, ”—-Your Subject—”); objNotes.Attributes.Add(“notetext”, “—Your notes text—”); //Relate the note with ‘Quote’ using ‘EntityReference’ EntityReference refQuote = new EntityReference(); refQuote.LogicalName = “quote”; refQuote.Id = quoteID; //Quote GUID objNotes.Attributes.Add(“objectid”, refQuote); //Set…


