-
Continue reading →: Retrieve multiple records synchronously using OData & JQuery in CRM 2011
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 →: System.InvalidOperationException while running Device Registration tool – CRM 2011 online
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 →: Report cannot be displayed – rsProcessingAborted
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 →: Adding components to solution programmatically in CRM 2011
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 →: Limitation of OData End Point – Setting Activity Parties
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 →: Delete record synchronously using OData and JScript in CRM 2011
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 →: Update record synchronously using OData and JScript in CRM 2011
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 →: Create record synchronously using OData and JScript in CRM 2011
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…


![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)