Browsing articles tagged with "option set Archives | Pedro Innecco"

Dynamics CRM: Adding a Country/Region option set using ISO 3166-1

In Dynamics CRM, there is one particular bit that I always find myself customising, no matter the client size, region or industry: Country/Region fields.

By default in Dynamics CRM the country/region field is a text field, which means users could type anything they want. This of course can lead to confusion. The solution is to add an option set (a drop-down menu), which can be localised into multiple-languages. The problem is giving the values to the option sets. People often tend to give values starting from 1 to the options in alphabetical order (e.g.: 1 = Afghanistan; 2 = Åland Islands; […]). But this can often lead to issues as options are added or removed from the list.

What if I told you that I think I came up with the perfect solution, but that would mean that you should give specific values such as 4 for Afghanistan, 705 for Slovenia and 858 for Uruguay? I didn’t come up with these values out of a whim. They actually make a lot of sense. If you haven’t figured out the meaning of these values yet, read on for the explanation.