Starting with this great article, I’ve created a JavaScript Library with several useful functions & methods for CRM 2011, such as: – CRM Service class to Create, Update, Retrieve, RetrieveMultiple, Delete records in CRM (SOAP based); – Custom Runtime Advanced Filtered Lookup support; – Set Lookup Value programmatically support – Guid Generator – CRM Form Buttons… Continue reading Useful JavaScript functions & methods for CRM 2011 – CWS.CRM.Utils.js Library
Category: Microsoft
CRM 2011 – Launch a Dialog Window from JavaScript
// Launches a Dialog Popup function LaunchDialog(organizationName, dialogId, objectId) { if(organizationName != null && dialogId != null && objectId != null) { var url = “http://” + window.location.host + “/” + organizationName + “/cs/dialog/rundialog.aspx?DialogId=” + dialogId + “&EntityName=task&ObjectId=” + objectId; window.open(url, “AutomaticDialog”, “status=0,toolbar=0,scrollbars=0”); } } }
CRM 4.0 to CRM 2011 JavaScript Converter Tool
A very handy tool to convert your custom CRM Scripts has been released and can be downloaded from here.
Set CRM 2011 field requirement level in runtime
CRM 2011: // No Constraint Xrm.Page.getAttribute(“field_schema_name”).setRequiredLevel(“none”); // Business Required Xrm.Page.getAttribute(“field_schema_name”).setRequiredLevel(“required”); // Business Recommended Xrm.Page.getAttribute(“field_schema_name”).setRequiredLevel(“recommended”); CRM 4.0: // No Constraint crmForm.SetFieldReqLevel(“field_schema_name”, 0); // Business Required crmForm.SetFieldReqLevel(“field_schema_name”, 1); // Business Recommended crmForm.SetFieldReqLevel(“field_schema_name”, 2);
CRM 2011 – enable tracing
To enable tracing in CRM 2011, go to regedit.exe > HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > MSCRM and add two new keys: TraceEnabled and TraceRefresh (both DWORD, value = 1)
Change CRM config database name
To make CRM point to a different config database, go to regedit.exe > HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > MSCRM and change the value of configdb. Also, you’ll have to rename the MSCRM_CONFIG database in SQL Server.
Novensys
One of the best corporations in Romania and Eastern Europe, Novensys is the specialist that integrates intelligent solutions for information management, provided by the best technology developers worldwide. Novensys is an expert when it comes to turning raw information into intelligent information which is useful and applicable in your business – the kind of information… Continue reading Novensys
Access CRM 2011 from your PC, from a different domain
To access a CRM 2011 website hosted on a PC of a different domain, from your browser, complete the following steps: 1) Configure IIS to grant Anonymous Authentication and Enable the Directory Browsing feature (Start > Run > inetmgr > IIS Section > Authentication & Directory Browsing). *** 2) Turn Off Windows Firewall (Start >… Continue reading Access CRM 2011 from your PC, from a different domain
Adding a custom button to CRM 2011 toolbar
Check this post. Provides an useful example: http://nishantrana.wordpress.com/2010/11/04/adding-my-first-custom-button-in-crm-2011/
Format date fields in CRM
Special thanks to Andriy a33ik Butenko for this post. // Formats the date into a certain format Date.prototype.Format = function(format) { var d = this; var f = “”; f = f + format.replace( /dd|mm|yyyy|MM|hh|ss|ms|APM|s|/|-|,|./ig , function match() { switch(arguments[0]) { case “dd”: var dd = d.getDate(); return (dd < 10)? "0" + dd :… Continue reading Format date fields in CRM