Skip to content

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

    • About
    • DEV Tools
  • CRM 2011, JScript

    Retrieve multiple records synchronously using OData & JQuery in CRM 2011

    Published by

    Rajeev Pentyala

    on

    May 27, 2012

    Hi, Below is the Jscript function to retrieve multiple records synchronously using OData & JQuery. function retrieveMultipleSync(odataSetName, select, filter) { 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 synchronously using OData & JQuery in CRM 2011
  • CRM 2011, JScript

    Loading dependent jscript libraries in ribbon button’s execution CRM 2011

    Published by

    Rajeev Pentyala

    on

    May 23, 2012

    Hi, I have a ribbon button on my “Account” main grid . I am calling function “sayHello” which is in my web resource “account_ribbon” by defining custom action like below. <Actions> <JavaScriptFunction Library=”$webresource:account_ribbon” FunctionName=”sayHello”> </JavaScriptFunction> </Actions> Now the problem is, I need to call another method from my “sayHello” function,…

    Continue reading →: Loading dependent jscript libraries in ribbon button’s execution CRM 2011
  • CRM 2011, JScript

    Hide/Show sections using JScript in CRM 2011

    Published by

    Rajeev Pentyala

    on

    May 20, 2012

    Hi, We can’t directly hide or show the section using Xrm.Page.ui.controls.get(“{section_name}”).setVisible(true/false) You have to first get the “Tab” control of your “Section”. Below is the script to Hide/Show sections     // Get the Tab which contains your Section var tabCtrl = Xrm.Page.ui.tabs.get(“{tab_name}”); if (tabCtrl && tabCtrl.sections.get(“{section_name}”)) { tabCtrl.sections.get(“{section_name}”).setVisible(true/false); } You can…

    Continue reading →: Hide/Show sections using JScript in CRM 2011
  • CRM 2011

    System.InvalidOperationException while running Device Registration tool – CRM 2011 online

    Published by

    Rajeev Pentyala

    on

    May 18, 2012

    Hi, When I was trying to generate Device “ID” and “Password” using the command “deviceregistration.exe /operation:Register”, I got below error Unhandled Exception: System.InvalidOperationException: There is an error in XML document (5, 5). —> System.Security.Cryptography.CryptographicException: The parameter is incorrect Reason :- When you run the “deviceresistration.exe”, it creates new “LiveDevice.xml” file under…

    Continue reading →: System.InvalidOperationException while running Device Registration tool – CRM 2011 online
  • CRM 2011, SSRS

    Report cannot be displayed – rsProcessingAborted

    Published by

    Rajeev Pentyala

    on

    May 12, 2012

    Hi, This is the most common error we get when you run a custom report from CRM. Though there could be many reasons below are the ways to know the reason for issue To debug:- Connect to the machine where your SSRS server installed and open the event viewer Run –> eventvwr…

    Continue reading →: Report cannot be displayed – rsProcessingAborted
  • CRM 2011

    Adding components to solution programmatically in CRM 2011

    Published by

    Rajeev Pentyala

    on

    May 6, 2012

    Hi, We can add components to the solution programmatically by passing  Component meta data id component type Solution unique name to “AddSolutionComponentRequest“. Lets say, I have a solution named “Rajeev” in my organization. Below is the code to add a component (i.e.,. Account entity) using IOrganization service             this.credentials =…

    Continue reading →: Adding components to solution programmatically in CRM 2011
  • CRM 2011, JScript

    Limitation of OData End Point – Setting Activity Parties

    Published by

    Rajeev Pentyala

    on

    May 2, 2012

    Hi, In one of my requirement, I had to create an “Appointment” record programmatically using Jscript by populating field ‘required attendees’ (i.e., ActivityParty) to it. I followed below steps to complete the requirement Created the “Appointment” record first Added 2 contacts as “Required Attendees” to Appointment, for which I used below code…

    Continue reading →: Limitation of OData End Point – Setting Activity Parties
  • 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
Previous Page Next Page
Visitors

2,149,106 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