March 21, 2013

Retrieve fault entity IDs when performing ExecuteMultiple

One of the new features introduced inside CRM 2011 Update Rollup 12 is the ExecuteMultipleRequest message in order to perform bulk data operations. More information can be found at this address:

Use ExecuteMultiple to Improve Performance for Bulk Data Load

When the ContinueOnError property is set to true the service will not stop if there are faults, but how we can retrieve the fault entity IDs?

We need to rely on the RequestIndex property inside ExecuteMultipleResponseItem object, the RequestIndex indicates the corresponding request.

March 15, 2013

Dynamic navigation links using supported customizations

Consider for example the following scenario:
We need to add a link inside the left navigation panel to display an HTML Web Resource or an external URL, with CRM 2011 can easily done using the form editor as shown in the following figure



but is possible to build a dynamic URL? Yes, it is possible and more important can be done in a supported way.

March 11, 2013

March 5, 2013

Calculate age in Microsoft Dynamics CRM 2011

Sometimes inside CRM is necessary to display the actual age of a contact or on a particular date (for example to know how old was the patient when he did a medical exam).

The following code can be used in both situations.