• News & Events

    Keep up with the latest and greatest news, events and knowledge from the Magnetism team.

Roshan Mehta Blog





  • 14 May

    Late Binding in Dynamics CRM 2011


    I have previously taken you through some simple examples of early binding in Microsoft Dynamics CRM 2011. Late binding involves the use of the “Entity” class which can manage entities of any type. For example, we can use the “Entity” object to programmatically create Accounts, Leads, or Cases. In this post, we will take a look at some late binding examples using methods available in the Microsoft Dynamics CRM SDK.

    Type checking is performed at runtime so developers using the late binding methods must explicitly cast attribute values to the appropriate types otherwise custom code will fail during execution. Unlike ...

    Read full post
  • 07 May

    Early Binding in Dynamics CRM 2011


    The Microsoft Dynamics CRM 2011 Software Development Kit ships with a tool (CrmSvcUtil) which can automatically generate helper classes to make it easier to work with your CRM entities and their attributes. Developers can take advantage of type checking at compile time and intellisense for entity, attribute and relationship definitions. In this post, we will look at some simple examples on how to perform CRUD operations using early binding.

    Generating the Helper Class

    In the command prompt, navigate to <installation directory>\Microsoft Dynamics CRM 2011 SDK\sdk\bin. Enter crmsvcutil.exe to run the application and you will see the available parameters to ...

    Read full post
  • 05 May

    Dynamics CRM 2011 – Early vs. Late Binding Overview


    Developers have two options when writing code for Microsoft Dynamics CRM 2011 – early binding and late binding. The choice comes down to personal preference, but there are several advantages and disadvantages with both options. 
     Dynamics CRM 2011 – Early vs. Late Binding Overview

    Early Binding

    The Microsoft Dynamics CRM 2011 Software Development Kit ships with a tool (CrmSvcUtil) which can automatically generate helper classes to make it easier to work with your CRM entities and their attributes. This provides type checking at compile time, which eliminates the chance of running into InvalidCastExceptions during execution of your custom code. It also lets developers take advantage of intellisense by ...

    Read full post