Microsoft Dynamics 365 Business Central 2021 Release Wave 1 is out (whoa, that was a mouthful) with some new perks for developers. Today, I had another live session at http://vjeko.live, and I made it both the first one in the series of What’s New for the latest release, as well as the episode four of Fun with Interfaces.
Interfaces are such an amazing feature in AL language, that was long missed, and that’s now saving my day nearly every time I do something with AL. The latest AL compiler (runtime “7.0”) comes with these new interesting features about interfaces:
- You can mark interfaces for obsoletion.
- You can mark individual interface functions for obsoletion.
- You can return interfaces as return type from functions.
- You can define
UnknownValueImplementationfor enums to specify the interface that represents any unknown enum values.
Let’s take a look at each one of those with examples.(more…)