CRM 2011 – Sharing records in IFRAME

Hello, Unfortunately, if you want to use the sharing dialog in an IFrame, you’ll receive several errors (most of them regarding _a.length object). To solve the issue, you can try the following workaround. It’s not supported, but it’s safe. Still, I recommend you backup any file before modifying it. Go to %programfiles%\Microsoft Dynamics CRM\CRMWeb\_grid\cmds and… Continue reading CRM 2011 – Sharing records in IFRAME

JavaScript Serial Number Generator

To generate a random serial number, based on a given mask, you can use the following code: // Serial Number Generator // Generates a random number in a certain interval function GenerateRandomNumber(min,max) { return Math.floor(Math.random() * (max – min + 1)) + min; } // Generates a random alphanumberic character function GenerateRandomChar() { var chars… Continue reading JavaScript Serial Number Generator

Useful JavaScript functions & methods for CRM 2011 – CWS.CRM.Utils.js Library

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

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”); } } }

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);

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