Replacing the Country and Province fields with lookups

Even though we touched on bits and pieces of this recipe earlier in the previous chapters, I will be presenting here a top-to-bottom approach of replacing the standard out-of-the-box Country and Province fields with lookups. This solution will allow users to select these values from pre-defined available options, and eliminate the issues resulting from typical user input errors.

Getting ready

For this recipe, use one of the solutions created in earlier chapters, or create a new one. Add to your solution the Account and Contact entities where we will replace the fields with lookups.

How to do it...

Follow the same steps on both the Account and the Contact entities. I will only describe the process ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.