Skip to content

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

    • About
    • DEV Tools
  • CRM 2011

    Unexpected error while bulk edit

    Published by

    Rajeev Pentyala

    on

    September 22, 2011

    Hi, You may come across below error screen when you try to bulk edit records. When you verify the event viewer for issue log, you may observe “Message: INVALID_WRPC_TOKEN: Validate WRPC Token: WRPCTokenState=Invalid” . Reason:- The fundamental problem is that CRM 2011 now expects additional parameters on the query string that contain a Token…

    Continue reading →: Unexpected error while bulk edit
  • CRM, CRM 2011, CRM 4.0, Plug-Ins

    Missing prvReadAsyncOperation privilege exception

    Published by

    Rajeev Pentyala

    on

    September 21, 2011

    Hi, Today my plug-in has thrown “Missing prvReadAsyncOperation privilege ” exception for user with one of the security role. Fix:- We need to grant Read Priveliege of System Job for the security role Open the Security Role and go to Customization tab Refer below screen   Hope it helps 🙂

    Continue reading →: Missing prvReadAsyncOperation privilege exception
  • CRM 2011, Plug-Ins

    Check user security role in Plug-ins CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 20, 2011

    Hi, Below is the code snippet to check current user security role in Plug-in. private void CheckUserRole(IOrganizationService service, Guid userID) { QueryExpression query = new QueryExpression(); query.EntityName = “role”; //role entity name ColumnSet cols = new ColumnSet(); cols.AddColumn(“name”); //We only need role name query.ColumnSet = cols; ConditionExpression ce = new ConditionExpression(); ce.AttributeName = “systemuserid”; ce.Operator = ConditionOperator.Equal; ce.Values.Add(userID); //system roles LinkEntity linkRole = new LinkEntity(); linkRole.LinkFromAttributeName…

    Continue reading →: Check user security role in Plug-ins CRM 2011
  • CRM 2011, CRM 4.0, JScript

    How to change CRM form field’s label text and color using Jscript

    Published by

    Rajeev Pentyala

    on

    September 15, 2011

    Hi, Below is the sample JScript to change the color and text of  CRM form field’s  label; Place the code in JScript “onload” event // To change color if(crmForm.all.new_fieldname != null) { var field = crmForm.all.new_fieldname_c; //”_c” is the caption (i.e.,Label) if (field != null) field.style.color = ‘gray’; //Specify your…

    Continue reading →: How to change CRM form field’s label text and color using Jscript
  • CRM 2011, Plug-Ins

    Read Optionset value in Plugin CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 14, 2011

    Hi,   Below is the sample code to read Picklist value (i.e., OptionSet Value) in CRM 2011 if (context.InputParameters.Contains(“Target”) && context.InputParameters[“Target”] isEntity) { currEntity = (Entity)context.InputParameters[“Target”]; } int statusValue = -1; string statusText=string.empty; if (currEntity .Attributes.Contains(“statecode”)) { OptionSetValue optionState = currEntity .Attributes[“statecode”] as OptionSetValue; statusValue = optionTimesheetState.Value; statusText = optionTimesheetState.Text;…

    Continue reading →: Read Optionset value in Plugin CRM 2011
  • SQL

    Case statement in Select clause

    Published by

    Rajeev Pentyala

    on

    September 13, 2011

    Hi, Below is a sample query that has “CASE statement”  in SELECT clause SELECT EmpID, CASE WHEN Salary>=2000 THEN ‘High Salaried’ WHEN Salary<=1000 THEN ‘Medium’ ELSE ‘Below Bar’ END ‘New Column’, * FROM Employee Below is the screenshot for reference Hope it helps 🙂

    Continue reading →: Case statement in Select clause
  • CRM 2011, Processes

    Workflows/Dialogs ownership in CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 10, 2011

    Hi, Today i have come across useful article on “Ownership of  Workflows ” below are few excerpts Q> Under what user’s context does the workflow execute? (If the workflow creates a record, who will be the owner of that new record?) Automatically triggered workflows (such as a workflow that triggers…

    Continue reading →: Workflows/Dialogs ownership in CRM 2011
  • CRM 2011, Plug-Ins

    User does not have “prvSendEmail” privilage CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 9, 2011

    Hi, In CRM 2011, while sending an email programatically you may come across “User doe not have SendAsUser Privilage” exception. (Refer useful article on How to send an email https://rajeevpentyala.wordpress.com/2011/08/03/sending-an-email-using-crm-2011-plug-in/) It would happen even all the security roles having this privilege (Refer below) To fix the issue, solution is very simple Open the…

    Continue reading →: User does not have “prvSendEmail” privilage CRM 2011
  • CRM 2011

    How to get Object Type Codes of Entities in CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 8, 2011

    Hi, In this article i have explained different ways to fetch entities “Object Type Code”  Using SQL Query :- Query> SELECT ObjectTypeCode,* FROM ENTITYVIEW Using JScript  :- The “ObjectTypeCode” can be extracted from Query String using JScript “ObjectTypeCode” resides in “etc” query string  parameter Below is the JScript statement to get…

    Continue reading →: How to get Object Type Codes of Entities in CRM 2011
  • CRM 2011, JScript, Ribbon

    Updating selected records in the contact Grid – CRM 2011

    Published by

    Rajeev Pentyala

    on

    September 1, 2011

    Hi, In CRM 2011, we can update selected records in the Grid using Ribbon customizations (i.e., by using a Custom Ribbon Button). Steps:- Create a new Solution called “Ribboncustomer” and add ‘contact’ entity and a newly created web resource called ”ribbon.js” with below function function processrecords(selectedIds) { if (selectedIds != null &&…

    Continue reading →: Updating selected records in the contact Grid – CRM 2011
Previous Page Next Page
Visitors

2,152,176 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

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