Author: bernierainerguy

Tel. 01489 666383

Retrieve the GUID of an Entity record

Xrm.Page.data.save().then(function(){ var id = Xrm.Page.data.entity.getId(); }, function(){ alert(“Error”); // not wise but good for testing? });


4th April 2018 0

enable / disable section/tab/form v9+

// Section Disable function sectiondisable (sectionname, disablestatus) { var ctrlName = Xrm.Page.ui.controls.get(); for(var i in ctrlName) { var ctrl = ctrlName[i]; var ctrlSection = ctrl.getParent().getName(); if (ctrlSection == sectionname) { ctrl.setDisabled(disablestatus); } } } // sectiondisable   // TAB Disable function tabdisable (tabname, disablestatus) { var tab = Xrm.Page.ui.tabs.get(tabname); if (tab == null) alert(“Error: The…
Read more


14th March 2018 0

Enable / Disable a field in Dynamics

Xrm.Page.getControl(“fieldname”).setDisabled(false);


14th March 2018 0