Skip to the main content.
Contact Us

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

 

Why Upgrade from Dynamics 365 Sales Enterprise to Premium

6 min read

Why Upgrade from Dynamics 365 Sales Enterprise to Premium

As businesses grow, they require more sophisticated tools to help them manage their operations. In the case of sales teams, Dynamics 365 Enterprise...

Microsoft Dynamics 365 Release WAVE Offer

4 min read

Microsoft Dynamics 365 Release WAVE Offer

Microsoft Dynamics 365 is a powerful cloud-based solution that empowers businesses to streamline their operations, boost productivity, and drive...

TrellisPoint Announces Continued Growth with a New Location

2 min read

TrellisPoint Announces Continued Growth with a New Location

LOUISVILLE, KY. (JANUARY 26, 2023)—TrellisPoint, an Ohio based Microsoft Dynamics and Power Platform Partner, is continuing to expand its reach by...