Skip to content

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

    • About
    • DEV Tools
  • CRM 2011, JScript

    Pass parameters to the report hosted in IFrame or Web Page

    Published by

    Rajeev Pentyala

    on

    April 10, 2012

    Hi, Assume you have to display related ‘contacts’ of an ‘Account’ in the report hosted in an IFrame. You can prepare a dataset using below query in the report SELECT * FROM FilteredContact C WHERE C.accountid=@CRM_AccountId To set parameter ‘@CRM_AccountId‘, you can pass parameter in the URL in this format…

    Continue reading →: Pass parameters to the report hosted in IFrame or Web Page
  • CRM 2011, JScript, Ribbon

    Opening a report using ribbon button in CRM 2011

    Published by

    Rajeev Pentyala

    on

    April 10, 2012

    Hi, To open the Report :- We need report GUID and report associated entity record GUID Get report GUID by using ‘Report Name’ using ‘retrieveMultiple’ function Prepare URl and open new window Below are the functions function openReport (reportName) { var oDataSetName = “ReportSet”; var columns = “ReportId”; var filter…

    Continue reading →: Opening a report using ribbon button in CRM 2011
  • CRM 2011, JScript

    Disabling sub grid using jscript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    April 9, 2012

    Hi, We can’t disable sub grid using out of the box “setDisabled” method. But there is an unsupported way to disable the grid. Actually sub grid renders as HTML Span, so we can disable the span using below function function disableSubgrid(subgridName) { var subGrid = document.getElementById(subgridName + “_span”); if (subGrid) {…

    Continue reading →: Disabling sub grid using jscript in CRM 2011
  • SQL

    Intellisense feature in Sql server management studio 2008 R2 stopped working – Fix

    Published by

    Rajeev Pentyala

    on

    April 3, 2012

    Hi, You might have lost the Intellisense in ‘Sql server management studio 2008 R2’ after you installed Visual studio 2010 Sp1. This is a known issue and it got fixed after I installed “Service Pack 1” of Sql server from below link Download When you click the above link, from the…

    Continue reading →: Intellisense feature in Sql server management studio 2008 R2 stopped working – Fix
  • CRM 2011, JScript

    Get and Set ‘Partylist’ fields using Jscript

    Published by

    Rajeev Pentyala

    on

    April 2, 2012

    If you observe “Required” lookup field on an ‘Appointment’ form, you can choose more than one Accounts or Contacts or Users. Though it looks like a normal lookup field actually it’s a field of type ‘Party list’. Party List :- Party List is a data type in CRM, using which you…

    Continue reading →: Get and Set ‘Partylist’ fields using Jscript
  • CRM 2011, JScript

    Associating entities with n:n relationship using Jscript

    Published by

    Rajeev Pentyala

    on

    March 29, 2012

    Hi, Below is the Jscript to associate two entity records, which are having (N:N) relationship. function AssociateEntities(relationshipSchemaName, entity1Name, entity1Id, entity2Name, entity2Id) { var xmlSoapBody = “<Execute xmlns=’http://schemas.microsoft.com/crm/2007/WebServices’>&#8221; + ”  <Request xsi:type=’AssociateEntitiesRequest’>” + ”    <Moniker1>” + ”      <Name xmlns=’http://schemas.microsoft.com/crm/2006/CoreTypes’>&#8221; + entity1Name + “</Name>” + ”      <Id xmlns=’http://schemas.microsoft.com/crm/2006/CoreTypes’>&#8221; + entity1Id + “</Id>” +…

    Continue reading →: Associating entities with n:n relationship using Jscript
  • Misc

    Could not load type System.ServiceModel.Activation.HttpModule exception

    Published by

    Rajeev Pentyala

    on

    March 29, 2012

    Hi, I was getting below exception, When I hosted my asp.net web application on IIS and tried to browse my .aspx page. Reason :- The reason could be, when the IIS is installed after the installation of .NET Framework 4, or if the 3.0 version of the WCF Http Activation module is installed after…

    Continue reading →: Could not load type System.ServiceModel.Activation.HttpModule exception
  • CRM 2011, JScript

    Retrieve multiple records using OData & JQuery in CRM 2011

    Published by

    Rajeev Pentyala

    on

    March 26, 2012

    Hi, Below are the Jscript functions to retrieve multiple records using OData & JQuery. function retrieveMultiple(odataSetName, select, filter, successCallback) { var serverUrl = Xrm.Page.context.getServerUrl(); var ODATA_ENDPOINT = “/XRMServices/2011/OrganizationData.svc”; var odataUri = serverUrl + ODATA_ENDPOINT + “/” + odataSetName + “?”; if (select) { odataUri += “$select=” + select + “&”;…

    Continue reading →: Retrieve multiple records using OData & JQuery in CRM 2011
  • CRM 2011, JScript

    Refreshing Sub grid and Main grid using Jscript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    March 23, 2012

    Hi, Below is the script to refresh the sub-grid     var mySubGrid = Xrm.Page.ui.controls.get(“{sub-grid name}“); if (mySubGrid) { mySubGrid.refresh(); } To get the sub grid name Open the entity customization form In designer, double click on subgrid In the dialog window, copy the “Name” value   To refresh the main…

    Continue reading →: Refreshing Sub grid and Main grid using Jscript in CRM 2011
  • CRM 2011, Ribbon

    Adding New Tab & Group & Buttons to CRM form Ribbon

    Published by

    Rajeev Pentyala

    on

    March 17, 2012

    Hi, Here are the steps to add new Tab, Group and Buttons to the ‘Contact’ form and call .jscript functions on button click. Steps :- Create a new .jscript file “contact.js” with below functions function fnA() { alert(“Button \”A\” clicked!!!”); } function fnB() { alert(“Button \”B\” clicked!!!”); } Open CRM…

    Continue reading →: Adding New Tab & Group & Buttons to CRM form Ribbon
Previous Page Next Page
Visitors

2,149,140 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
[Step by Step] Beginner : Create a PCF control and add it to a custom page[Step by Step] Beginner : Create a PCF control and add it to a custom pageDecember 2, 2024Rajeev 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
  • 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