The next control we will create handles Lookup attributes. Instead of a CRM-style lookup control, the CrmEntityPicklistControl renders a drop-down list just like our CrmPicklistControl. However, this control doesn’t use the Microsoft Dynamics CRM metadata to populate its option list. It instead uses a query to retrieve records from an entity. The end user can then select the appropriate record from the drop-down list. The CrmEntityPicklistControl also gives you the ability to filter the results returned to populate the drop-down options.

Programming the CrmEntityPicklistControl

Adding theCrmEntityPicklist class

  1. Right-click the ProgrammingWithDynamicsCrm4.Controls Project in Solution Explorer. Under Add, click New Item.

  2. In ...

Get Programming Microsoft Dynamics® CRM 4.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.