Tuesday, January 18, 2011

No BizTalk Adapter for CRM 2011

Recently, I got to know that there will be No Biztalk adapter for 2011.

The reason behind this is BizTalk Adapter for CRM 4.0 is being deprecated in favor of enabling the OOB BizTalk WCF adapter to work with CRM 2011's WCF endpoint for On-premised and  IFD deployments.




Dynamics CRM 2011 server is 64-bit only.

Just wanted to share this:

Dynamics CRM 2011 server is 64-bit only.

CRM 2011 client for Outlook is available in both 32 bit and 64 bit versions.


Friday, January 14, 2011

Windows XP SP3 supports CRM Online 2011 client for Outlook

You can have CRM Online 2011 Client for Outlook installed on Windows XP. But you should have SP3 installed on your system.

Tuesday, January 11, 2011

Loop through all elements on a CRM Form

Sometime we require to set all attributes on a form to disabled or checking which attribute has been changed.

To achieve this, you need to loop through each attribute of the CRM form. Below is the code snippet :


var iLen = crmForm.all.length;

for (i = 0; i < iLen; i++)
{
   o = crmForm.all[i];   switch (o.tagName)
   {
      case "INPUT":
      case "SELECT":
      case "TEXTAREA":
      case "IMG":
      case "IFRAME":
      if (o.id != "leadqualitycode")
      {
            o.disabled = true;
      }
      break;

      default:
            break;
   }
}

The above code will set all attributes to disabled.

Prevent CRM from saving a record.

The OnSave event is fired when a user presses the Save or Save and Close button on the form. The event is fired whether the data in the form has been modified or not.

Validating data is a common reason to use the OnSave event. The OnSave event can cancel the save operation before it is sent back to the server. To cancel the save operation, the script should return false as shown in the following code.

event.returnValue = false;

The SDK helps in this situation. Look at the following page for more information. MSDN SDK: OnSave Event