Change attachment file limit

More details about this issue can be found here: http://rahulsalunkhe.wordpress.com/2010/08/26/increasing-the-crm-4-0-attachment-size-limit . This should work under CRM 2011 as well.

Create a custom filtered lookup view in runtime – CRM 2011

Starting CRM 2011 you can filter a certain lookup view based on related entities or other system/custom views. But sometimes this is not enough. For example, if you wanna make a custom filtered view, that uses several filters, you can use the following approach. Starting scenario (all of the completed lookup fields will be used… Continue reading Create a custom filtered lookup view in runtime – CRM 2011

Creating records in CRM 2011 using JavaScript

Using the CRM Web Service, you can create new entity records, just using JavaScript. The following code demonstrates this: // Make Struct function MakeStruct(names) { var names = names.split(‘ ‘); var count = names.length; function constructor() { for (var i = 0; i < count; i++) { this[names[i]] = arguments[i]; } } return constructor; }… Continue reading Creating records in CRM 2011 using JavaScript

Set a lookup value in CRM 2011

// Sets the lookup value for a certain field function SetLookupValue(fieldName, id, name, entityType) { if(fieldName != null) { var lookupValue = new Array(); lookupValue[0] = new Object(); lookupValue[0].id = id; lookupValue[0].name = name; lookupValue[0].entityType = entityType; Xrm.Page.getAttribute(fieldName).setValue(lookupValue); } }

Another way of loading certain CRM Views into an IFRAME on the main form

Since every CRM View has its own GUID and can be launched using the Advanced Find out-of-the-box functionality, you can follow several easy steps to load what view you want (with whatever additional filters you want) in a certain IFRAME available on the crmForm.Here’s the scenario: you wanna display your active contacts (My Active Contacts… Continue reading Another way of loading certain CRM Views into an IFRAME on the main form