Cumulative Update includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics Business Central
With the release of Business Central 2020 Wave 1 lot of new features has been added to make product more prominent.
Though this concept of ENUM was introduced earlier but from new version onwards most of the option fields are available as extensible enum such as follows that means option fields goes away from table.
Based on few queries received thought lets write down few difference between enum and option.
Enum
Option
An enumeration type, also known as an enum in programming, is a keyword used to declare a type that consists of a set of named constants. The list of named constants is called the enumeration list. Enums can be used as table fields, local and global variables, and parameters.
In the OptionString Property of the field or variable, you can enter the option values as a comma-separated list. The Option type is a zero-based enumerator type, which means that the option values are assigned to sequential numbers, starting with 0. You can convert option data types to integers.
To declare an enum in AL you must specify an ID and name
To define option need to add value as comma-seprated list
Enum with extensible property set to true can be extended
To extend option value need to modify the base table and add the required value
How to define enum enum 50110 MyList { Extensible = true;
With the release of Business Central 2020 Wave 1 lot of new features has been added to make product more prominent.
Though this concept of ENUM was introduced earlier but from new version onwards most of the option fields are available as extensible enum such as follows
If define enum is extensible then we can add more option values in that field.
How to add the new option value in existing enum field.
First create extension for enum as below
To check the value just added one action button as below
To check the output publish the app and check
Select the document type and check the result as follows