-
Continue reading →: Sending Email using Email Template in CRM 2011
Hi, Here is the sample code to send an Email using Email template name. Before start below are few keywords Template Name (i.e., Name of the Template) Regarding Id (i.e., GUID of the entity record which template associated with) Regarding Type (i.e., Logical name of the entity which template associated with) ActivityParty[] (i.e., Sender…
-
Continue reading →: Retrieve record using OData and JQuery in CRM 2011
Hi, Below is the script to read a record using OData & JQuery function retrieveRecord(id, odataSetName) { // Get Server URL var serverUrl = Xrm.Page.context.getServerUrl(); //The OData end-point var ODATA_ENDPOINT = “/XRMServices/2011/OrganizationData.svc”; //Asynchronous AJAX function to Retrieve a CRM record using OData $.ajax({ type: “GET”, contentType: “application/json; charset=utf-8”, datatype: “json”,…
-
Continue reading →: Reading the GUID of record from CRM form URL
Hi, Below are the steps to get the GUID of record from CRM form URL. In the form ribbon, click on Copy a Link button in the Collaborate group. Paste the URL on notepad. The ‘id’ parameter in the copied URL contains the encoded id value for the record. The brackets in…
-
Continue reading →: Update record using OData and JQuery in CRM 2011
Hi, Below is the script to update a record using OData & JQuery. I am updating an Account record in this example. function updateRecord(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”; //Asynchronous AJAX function to Update a CRM…
-
Continue reading →: Assign record using JScript in CRM 2011
Hi, Below is the Jscript to assign a record to particular User using SOAP. function AssignRecord(Assignee, Target, entityName) { var request = “<s:Envelope xmlns:s=\”http://schemas.xmlsoap.org/soap/envelope/\”>”; request += “<s:Body>”; request += “<Execute xmlns=\”http://schemas.microsoft.com/xrm/2011/Contracts/Services\””; request += ” xmlns:i=\”http://www.w3.org/2001/XMLSchema-instance\”>”; request += “<request i:type=\”b:AssignRequest\””; request += ” xmlns:a=\”http://schemas.microsoft.com/xrm/2011/Contracts\””; request += ” xmlns:b=\”http://schemas.microsoft.com/crm/2011/Contracts\”>”; request += “<a:Parameters…
-
Continue reading →: Create record using OData and JQuery in CRM 2011
Hi, Below is the code snippet to create a record (i.e., Account) using OData & JQuery. //Prepare ‘Account’ object and call create function function createAccount() { //Create an object to represent an Account record and set properties var account = new Object(); // Set text field account.Name = “Rajeev Pentyala”; // Set…


![[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)