1 min read

Dependent Option Sets Updated for Dynamics 365

Dependent Option Sets Updated for Dynamics 365

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 (8.2.1.1 as of this writing) which DOES NOT WORK with the latest Dynamics 365.

Notable Changes:

  • Configurations are now written in JavaScript and JSON notation. They were previously written in XML. However, this created some issues when option set labels included ampersands. You will need to rewrite your configurations.
  • 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.

Learn more about Microsoft D365

 

Book a Demo   Learn More

 

Build Efficiency by Bulk Editing Excel Data using Dynamics 365

Did you know that it’s quick and simple to change multiple records at once using the bulk editing option in Dynamics 365? This brief post will show...

Read More
The Power of Auditing in Dynamics 365

The Power of Auditing in Dynamics 365

In complex CRM systems, tracking down the source of record changes can be difficult. Workflows, plugins, business rules, and scripts can change field...

Read More
Calculating Upcoming Dates in Dynamics 365

Calculating Upcoming Dates in Dynamics 365

A good CRM is about more than just having a sleek system for your employees. It should be a tool used to increase customer satisfaction. Efforts to...

Read More