Option sets in CRM are an easy way to ensure clean data. Limiting end user choices tends to streamline business processes and ensure uniform data entry. It is possible to extend the advantage of option sets in Dynamics 365 by implementing dependent option sets. A dependent option set shows values conditionally, based on the value chosen in the “parent” option set. Using this method, you can simplify the UI of CRM and further eliminate confusion for your end users. Here is a short list of a few key features:
Features of Dependent Option Sets:
- The child option set value will be cleared and locked if the parent option set is empty.
- The child option set is unlocked when a parent option set value is selected.
- When a value is changed in the parent option set and the value in the child option set no longer applies, then the value in the child option set is cleared.
- A parent pick list can have any number of children.
Microsoft has thoughtfully included sample code in their SDK going all the way back to 2011. However, with each iteration of CRM up to and including Dynamics 365, this code has changed from version to version.
The latest version of this code as of this writing can be found here: https://code.msdn.microsoft.com/Create-Dependent-844db2d1
This version differs significantly from the version provided in even the latest SDK (126.96.36.199 as of this writing) which DOES NOT WORK with the latest Dynamics 365.
- The previous iteration of the JS library used native for…in to iterate objects with both attributes and methods. This resulted in the UI freezing. Now it uses .foreach() from the “stock” JS library.
- SDK code did not work with mobile clients due to the way they handle scope differently than browsers.
TrellisPoint is a professional services firm specialized in the implementation, management and maintenance of CRM systems. We have years of experience customizing Dynamics CRM and Dynamics 365. Because of the constant improvements and changes made to Dynamics, even so-called “supported” customizations sometimes require maintenance. Please do not hesitate to contact us for a free consultation with no commitment required.