Skip to main content

Posts

Dynamics CRM 2016/365 Data Types

Dynamics CRM 2016/365 Data Types All data types of Microsoft Dynamic CRM are listed in following table. Data Type Specification  Single line of text  Single line of text is used for single lines of text. Support a maximum of 4,000 characters. Using Options Email: Text Text area URL Ticker Symbol Phone:  Option sets  It is look like drop down list in Web page or combo box window form. It provide several options for selecting. Just 1 value can be selected. Storing the text as Title and integer as Value. Entity table just store the Value in database, other information are stored in  string map  table. There are 2 type of option Set Global Created in solution and can be referred to any local option Set. Local specify to entity only  Two options  It is Boolean Value Yes/No is default option, can be renamed as needs Can be set default opt...

Delete record using JQuery and OData in Dynamics CRM 2011

function DeleteRecord(id, oDataSetName) {     var serverUrl = Xrm.Page.context.getServerUrl();     var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";     $.ajax({         type: "POST",         contentType: "application/json; charset=utf-8",         datatype: "json",         url: serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "(guid'" + id + "')",         beforeSend: function (XMLHttpRequest) {             //results will be returned as JSON.              XMLHttpRequest.setRequestHeader("Accept", "application/json");             //HTTP method DELETE               XMLHttpRequest.setRequestHeader("X-HTTP-Method", "DELETE");         },         success: function (da...

How to attach refresh event on Dynamic CRM 2011 subgrid using Java Script / JQuery ?

// Attach the function OnFormLoad event function OnFormLoad() {     setTimeout("SubGridRefresh();", 2500 ); } function   SubGridRefresh() {     var subgrid = document.getElementById("subgridid");     if (subgrid.readyState != "complete") {         // recursive till the subgrid is loaded         setTimeout(SubGridRefresh, 1000);         return;     }     // if subgrid fully loaded       if (subgrid) {         // attach the name of the custom function to grid          subgrid .attachEvent("onrefresh", OnRefresh_SubGrid);          subgrid .control.add_onRefresh(OnRefresh_SubGrid);     } } function   OnRefresh_SubGrid() {     //custom code to execute     var entityid = Xrm.Page.data.entity.getId();     alert(entityid); } ...