Updating the Current Format of the User to English (United States) Entity updateUserSettings = new Entity(“usersettings”); updateUserSettings.Attributes.Add(“systemuserid”, userId); updateUserSettings.Attributes.Add(“localeid”, 1033); orgService.Update(updateUserSettings);

To Hide the Business Process Buttons cannot be done OOB. To achieve this add a HTML Web Resource on Form and paste the following code. See the magic. 🙂 HTML Web Resource: $(document).ready(function () { // Hide Next Stage button … Continue reading →

How to refresh the sub-grid on Dashboard from the HTML Webresource? parent.document.getElementById(<Subgrid control ID>).control.refresh(); e.g. parent.document.getElementById(“Component21226322”).control.refresh();

With the following couple of lines of code, we can easily restrict the Lookup Types in Lookup Dialog. var regarding = Xrm.Page.getAttribute(“regardingobjectid”); regarding.setLookupTypes([“account”,”contact”]);