Converting an option set to a multi select option set – not as easy as it looks
I am now often getting requests to ‘convert’ existing options sets to the new multi-select options sets – they are one of the new features in Microsoft Dynamics 365 v9.
Strictly speaking, it is impossible to convert an old-style, single selection option set to a multi?select option set. However, although not straightforward, it is possible to achieve this.
Steps to convert an option set to a multi-select option set
1. Create the new multi-select option set field, which can use either a global option set, or an option set within the field in question.
2. Migrate the data from the existing option set to the new multi-select option set field
3. Replace the original option set with the new multi-select option set field in all views that use it
4. Remove the original option set from everywhere that it is no longer needed
The challenge in the above, is the data migration – moving the data from the existing option set to the new multi-select option set.
Previously, when I have created a new field to change the type, e.g. moving from a text field to an option set field, I have migrated the data pretty simply, using either bulk edit or workflow. However, neither of these techniques work when doing this for multi-select option sets.
When trying to bulk edit a set of records, the multi-select option set fields are not available to change. In workflow, the fields do not show in the update record step.
So how did I achieve the migration?
The technique that did work was a data update using the data import wizard.
· I created an Advanced Find which only included the account name and the original option set
· I exported the data to a static worksheet in Excel - as xlsx (not csv)
· I changed the name of the original option set column to the name of the new multi-select option set field
· I imported this file, which populated the new multi-select option set field
Another challenge that I encountered while doing the data import was that I could only import the data file from my downloads directory. If I moved the file into the client folder, Dynamics 365 told me that the file was corrupt.
Remove the original field
Once you have completed the migration, and it has been confirmed as correct, there is probably no advantage in keeping the original field.
As a minimum, I would make the original field non-searchable, so it does not confuse users.
If it is a custom field, and you do want to completely remove it, check the dependencies of the field. Typically, you will need to:
· Delete any mappings that use it
· Remove it from one or more forms
· Remove it from one or more views
· Delete the field
The dependencies of the original option set field will point you in the right direction to achieve this quickly.
So although there is no simple tickbox to make an option set into a multiselect option set, it is possible and it is pretty straightforward.
Senior Tendering Specialist and Walking Football Advocate
1 年Hi Gill, I have just come across this post and it is really helpful, thank you. On the same topic, I have a table that is used to record services that are linked to opportunties; each row within the table records the service and opportunity. I want to remove this table and use a multiselect option set in the opportunity instead. Have you ever converted in data in this way? If so, have you any tips or suggestion on how to do it?
Senior business analyst / Powerapps and Power Automate specialist
3 年Did you try Attribute Manager with XRM?
Business Analyst at City of Sydney
6 年Cool tip!
Productivity Servers.
6 年I'm sure Gill knows what she's doing!?