다음을 통해 공유


Interface – handling removed enum extension value

Important

This content is archived and is not being updated. For the latest documentation, go to New and Planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.

Enabled for Public preview General availability
Admins, makers, marketers, or analysts, automatically Feb 1, 2021 Apr 1, 2021

Business value

Add resilience in interface implementations when extensible enum values are removed due to uninstalling extension declaring value.

Feature details

Enums can be used to select an interface implementation. However, due to the pluggable nature, an enum extension (and its corresponding interface implementation) could have been uninstalled from the tenant, while the setting for the enum is kept, now pointing to an "unknown" value. Instead of having app code add the validation logic for handling this scenario, the platform should catch when a non-valid enum value is provided, and allow for an extensible way to handle that.

This is related to, but not the same as, fallback to default value (which is used when no enum value is provided).

See also

UnknownValueImplementation Property (docs)