Skip to content

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

    • About
    • DEV Tools
  • JScript

    Reading Querystring using Jscript

    Published by

    Rajeev Pentyala

    on

    January 24, 2012

    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 →: Reading Querystring using Jscript
  • Misc

    You must use the Role Management Tool to install .Net Framework Exception

    Published by

    Rajeev Pentyala

    on

    January 19, 2012

    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 →: You must use the Role Management Tool to install .Net Framework Exception
  • CRM 2011, Plug-Ins

    Fetching user security roles using Linq in CRM 2011 Plug-in’s

    Published by

    Rajeev Pentyala

    on

    January 17, 2012

    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 →: Fetching user security roles using Linq in CRM 2011 Plug-in’s
  • CRM 2011, Plug-Ins

    Setting default view using Plug-in’s in CRM 2011

    Published by

    Rajeev Pentyala

    on

    January 17, 2012

    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 →: Setting default view using Plug-in’s in CRM 2011
  • CRM 2011, Plug-Ins

    How to Debug Plug-Ins in CRM

    Published by

    Rajeev Pentyala

    on

    January 13, 2012

    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 →: How to Debug Plug-Ins in CRM
  • CRM 2011, Plug-Ins

    Auto numbering logic in CRM 2011

    Published by

    Rajeev Pentyala

    on

    January 11, 2012

    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 →: Auto numbering logic in CRM 2011
  • CRM 2011

    Entities display area not getting set on Solution Import in CRM 2011

    Published by

    Rajeev Pentyala

    on

    January 10, 2012

    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…

    Continue reading →: Entities display area not getting set on Solution Import in CRM 2011
  • CRM 2011

    Bulk Updating or Inserting records from Excel using CRM Data Import

    Published by

    Rajeev Pentyala

    on

    January 8, 2012

    Hi, In CRM, you may come across scenarios where you need to Update/Insert a very large number of records very quickly. In these cases, opening each record’s form to make the change can be time-consuming. We can handle this better by using CRM Data Import feature by which we can make…

    Continue reading →: Bulk Updating or Inserting records from Excel using CRM Data Import
  • CRM 2011, Plug-Ins

    “The context is not currently tracking the entity” exception in CRM 2011

    Published by

    Rajeev Pentyala

    on

    January 3, 2012

    Hi, You may come across below exception when you are trying to Create/Update child record in the Parent record context of Plug-in using XRM Linq Scenario :- Imagine you have registered a “Post Update” Plug-in on ‘Account’ entity which Updates an associated ‘Contact’ entity Here the Plug-in runs under Parent Entity Context (i.e., Account)…

    Continue reading →: “The context is not currently tracking the entity” exception in CRM 2011
  • CRM 2011, Plug-Ins

    “Object of type can not be converted to type ‘IBusinessEntity’ ” exception with crm Early Binding

    Published by

    Rajeev Pentyala

    on

    December 28, 2011

    Hi, You may come across below exception in Plug-Ins, while performing Create/Update operation  using CRM early binding Exception: Unhandled Exception: System.InvalidOperationException: Object of type ‘entity_name‘ can not be converted to type ‘IBusinessEntity’ Fix :- You need to add below line in your Plug-in project’s “AssemblyInfo.cs” file (Navigate to project folder and go…

    Continue reading →: “Object of type can not be converted to type ‘IBusinessEntity’ ” exception with crm Early Binding
Previous Page Next Page
Visitors

2,149,228 hits

Top Posts
Claude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeClaude Code 'VS Code' Extension: Enable 'Bypass Permissions' ModeFebruary 5, 2026Rajeev Pentyala
Getting Started: Build Your First Power Apps Code AppGetting Started: Build Your First Power Apps Code AppAugust 27, 2025Rajeev Pentyala
GitHub Spec-Kit with Claude Code: Build a React App Using Spec-Driven AIGitHub Spec-Kit with Claude Code: Build a React App Using Spec-Driven AIFebruary 22, 2026Rajeev Pentyala

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

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

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 478 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