Skip to content

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

    • About
    • DEV Tools
  • CRM 2011, JScript

    Delete record synchronously using OData and JScript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    April 25, 2012

    Hi, Below is the script to delete record synchronously function deleteRecordSync(recordId, odataSetName) { // Get Server URL var serverUrl = Xrm.Page.context.getServerUrl(); //The OData end-point var ODATA_ENDPOINT = “/XRMServices/2011/OrganizationData.svc”; var deleteRecordReq = new XMLHttpRequest(); var ODataPath = serverUrl + ODATA_ENDPOINT; deleteRecordReq.open(‘POST’, ODataPath + “/” + odataSetName + “(guid’” + recordId +…

    Continue reading →: Delete record synchronously using OData and JScript in CRM 2011
  • CRM 2011, JScript

    Update record synchronously using OData and JScript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    April 25, 2012

    Hi, Below is the Jscript function to update record synchronously using OData and Jscript function updateRecordSync(id, entityObject, odataSetName) { var jsonEntity = window.JSON.stringify(entityObject); // Get Server URL var serverUrl = Xrm.Page.context.getServerUrl(); //The OData end-point var ODATA_ENDPOINT = “/XRMServices/2011/OrganizationData.svc”; var updateRecordReq = new XMLHttpRequest(); var ODataPath = serverUrl + ODATA_ENDPOINT; updateRecordReq.open(‘POST’,…

    Continue reading →: Update record synchronously using OData and JScript in CRM 2011
  • CRM 2011, JScript

    Create record synchronously using OData and JScript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    April 19, 2012

    Hi, Below is the Jscript function to create record synchronously using OData and Jscript function createRecordSync(entityObject, odataSetName) { var jsonEntity = window.JSON.stringify(entityObject); // Get Server URL var serverUrl = Xrm.Page.context.getServerUrl(); //The OData end-point var ODATA_ENDPOINT = “/XRMServices/2011/OrganizationData.svc”; var createRecordReq = new XMLHttpRequest(); var ODataPath = serverUrl + ODATA_ENDPOINT; createRecordReq.open(‘POST’, ODataPath…

    Continue reading →: Create record synchronously using OData and JScript in CRM 2011
  • 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
Previous Page Next Page
Visitors

2,152,774 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
  • 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