Skip to content

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

    • About
    • DEV Tools
  • 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
  • CRM 2011, Plug-Ins

    Solution with Plug-Ins import error in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 23, 2011

    Hi, You may get below error, when you try to import solution with Plug-in’s (or) registering a Plug-In using Plug-In registration tool Action failed for assembly ‘assemblyname,Version=1.0.0.0, Culture=neutral, PublicKeyToken=c79c3c28c5ba3ec0′: Assembly must be registered in isolation. Reason :- The User  who is trying to register is not a  “deployment administrator” Fix :- Add User…

    Continue reading →: Solution with Plug-Ins import error in CRM 2011
  • CRM 2011, JScript

    Type-cast OData Service Datetime field in crm 2011

    Published by

    Rajeev Pentyala

    on

    August 21, 2011

    Hi, When you read any CRM DateTime value using OData Service, the value comes in “/Date(1314763200000)/“ format, which we can’t directly set to DateTime field. Reason :- OData parses data in “Edm.DateTime” type <d:new_StartDate m:type=”Edm.DateTime”>2011-08-18T04:00:00Z</d:IBT_StartDate> How to Type Cast to DateTime :- Use below code to type cast OData DateTime type (i.e., Edm.DateTime)…

    Continue reading →: Type-cast OData Service Datetime field in crm 2011
  • CRM 2011

    Solution import error in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 15, 2011

    Hi, Sometimes you may get above error screen, when you try to import the “Solution”. Reason:- Let’s assume you have a solution “XYZ.zip” with 3 files (i.e., [Content_Types].xml, Customizations.xml & Solution.xml) Extract the “XYZ.zip” to “XYZ_new” folder Do some customization changes (i.e., Add few buttons to Ribbon) to “Customizations.xml” Save the…

    Continue reading →: Solution import error in CRM 2011
  • CRM 2011, JScript

    Submit disabled field using Jscript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 13, 2011

    Hi, Below is the syntax to submit the disabled field value using JScript. Xrm.Page.getAttribute(“{fld_id}”).setValue(“{fld_value}”); Xrm.Page.getAttribute(“{fld_id}”).setSubmitMode(“always”) Hope it helps 🙂

    Continue reading →: Submit disabled field using Jscript in CRM 2011
  • CRM 2011, JScript

    Sub Grid Refresh Event – CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 13, 2011

    Hi, Sometimes we may need to refresh Parent form, when we Add/Remove records from sub grid (i.e., On Subgrid Refresh). We can achieve this with below steps Get the “subgrid” id (i.e., Name of the subgrid, we can get it from either ‘Form customization’ or using IE Developer Tool) In parent form, onload()…

    Continue reading →: Sub Grid Refresh Event – CRM 2011
  • CRM 2011, JScript

    Get Parent Record Id from child record form + crm 2011

    Published by

    Rajeev Pentyala

    on

    August 12, 2011

    Hi, When you create/update a record form Associated view of Parent record, below is the JScript to “Get Parent Record Id from child record form”. //Get Parent Record Id var parentRecordID = GetUrlParameter(); parentRecordID = parentRecordID .substring(3, parentRecordID .length – 3); function GetUrlParameter() { var id = “”; var name = “_CreateFromId”; name…

    Continue reading →: Get Parent Record Id from child record form + crm 2011
  • CRM 2011, JScript

    Disabling form in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 10, 2011

    Hi, Here is the Jscript code to disable the CRM Form (i.e., Fields on the form) function doesControlHaveAttribute(control){ var controlType = control.getControlType(); return controlType != “iframe” && controlType != “webresource” && controlType != “subgrid”; } function disableFormFields(truefalse){ Xrm.Page.ui.controls.forEach(function(control, index) { if (doesControlHaveAttribute(control)){ control.setDisabled(truefalse); } }); } How do I call this?…

    Continue reading →: Disabling form in CRM 2011
  • CRM 2011, JScript

    Handling Tab click event in CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 8, 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 →: Handling Tab click event in CRM 2011
  • CRM 2011

    Disabled fields in Bulk Edit Form – CRM 2011

    Published by

    Rajeev Pentyala

    on

    August 8, 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 →: Disabled fields in Bulk Edit Form – CRM 2011
Previous Page Next Page
Visitors

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