Skip to content

Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

    • About
    • DEV Tools
  • CRM 2011, Plug-Ins

    CRM 2011 – Team sharing in Plug in

    Published by

    Rajeev Pentyala

    on

    August 7, 2011

    Hi, Below is the code to Share/Unshare a record to Team using “GrantAccessRequest“. //Sharing a Record to Team using Microsoft.Crm.Sdk.Messages; private void ShareRecordToTeam(IOrganizationService service, Guid sharingRecordId, Entity objTeam) { GrantAccessRequest grantRequest = new GrantAccessRequest() { Target = new EntityReference(“{Entity Name}”, sharingRecordId), PrincipalAccess = new PrincipalAccess() { Principal = new EntityReference(objTeam.LogicalName,…

    Continue reading →: CRM 2011 – Team sharing in Plug in
  • CRM 2011, Plug-Ins

    “Plug-in assembly does not contain the required types or assembly content cannot be updated”- CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 6, 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 →: “Plug-in assembly does not contain the required types or assembly content cannot be updated”- CRM 2011
  • CRM 2011, JScript

    Check User Security Role in CRM 2011 using JScript

    Published by

    Rajeev Pentyala

    on

    August 5, 2011

    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 →: Check User Security Role in CRM 2011 using JScript
  • CRM 2011, Plug-Ins

    Sending an Email using CRM 2011 Plug In

    Published by

    Rajeev Pentyala

    on

    August 3, 2011

    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 →: Sending an Email using CRM 2011 Plug In
  • CRM 2011, Plug-Ins

    Assign record (i.e., Change Owner) using CRM 2011 Plug-In

    Published by

    Rajeev Pentyala

    on

    August 2, 2011

    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 →: Assign record (i.e., Change Owner) using CRM 2011 Plug-In
  • CRM 2011, JScript

    “$ is undefined” error while calling OData Service using JQuery & CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 1, 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 →: “$ is undefined” error while calling OData Service using JQuery & CRM 2011
  • CRM, CRM 2011

    [Async_ExceptionOccurred] error with “CRM 2011 OData Query Designer”

    Published by

    Rajeev Pentyala

    on

    August 1, 2011

    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 →: [Async_ExceptionOccurred] error with “CRM 2011 OData Query Designer”
  • CRM 2011, Upgrade

    Audit issue after upgrade to CRM 2011

    Published by

    Rajeev Pentyala

    on

    July 29, 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 →: Audit issue after upgrade to CRM 2011
  • JScript

    Machine hangs up when you put a ‘debugger;’ in jScript “OnChange” event

    Published by

    Rajeev Pentyala

    on

    July 28, 2011

    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 →: Machine hangs up when you put a ‘debugger;’ in jScript “OnChange” event
  • CRM 2011, Upgrade

    Sitemap “Settings groups” display as “Unknown” after an upgrade from CRM 4.0 to CRM 2011

    Published by

    Rajeev Pentyala

    on

    July 26, 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 →: Sitemap “Settings groups” display as “Unknown” after an upgrade from CRM 4.0 to CRM 2011
Previous Page Next Page
Visitors

2,152,265 hits

Top Posts
Getting Started: Build Your First Power Apps Code AppGetting Started: Build Your First Power Apps Code AppAugust 27, 2025Rajeev Pentyala
Claude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeClaude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeFebruary 5, 2026Rajeev Pentyala
Power Pages | Build a Site Using 'Claude Code' and the 'Power Pages Plugin'Power Pages | Build a Site Using 'Claude Code' and the 'Power Pages Plugin'March 15, 2026Rajeev Pentyala

Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

  • Pinterest
  • Instagram
  • Facebook
  • Mail
    • About
    • DEV Tools

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
 

Loading Comments...
 

    • Subscribe Subscribed
      • Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI
      • Join 480 other subscribers
      • Already have a WordPress.com account? Log in now.
      • Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI
      • Subscribe Subscribed
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar

    Notifications