Last week, I had an conversation with my colleague Natalie Karolak. She faced a unique challenge: replacing an event-driven feature with interfaces. Her goal was to provide a template for end-users to implement every necessary function while ensuring the possibility of executing multiple implementations of the interface.
Tag Archives: Interface
How To Use Interfaces In Business Central
Interfaces are a tricky concept that can be difficult to understand. In this article, you will learn how to use interfaces in Business Central step by step. By following an existing interface, you will understand how to implement it to create your own interfaces.
Interface: a practical example
The interface is a structure introduced in the AL language that can help us in certain situations. But if we read the official documentation their functioning may be unclear.
In this post I want to show you a practical example of their use.
Inverting Dependencies with Interfaces in Business Central Application Language
Although interfaces were introduced in Business Central 2020 release wave 1, it can still be a fairly new concept for Business Central (BC) developers who have not programmed in other language such as C#, TypeScript, or Java. Interfaces are not new in the software engineering world, and it’s never too late to catch up with the rest of the industry on the good practices of writing and maintaining source code, and in particular, programming against an interface, not an implementation.
Implement an Interface in AL to extend a Business Central App in AppSource
In this video, I show how to extend an AppSource app using the new Interface object type. The Cloud Replicator from E Foqus is built around an interface, making it possible to add support for new databases.
What’s new about interfaces in 2021 Wave 1
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.
An examples of how to use D365 Business Central interfaces
Interfaces are somehow like codeunits, excepting that an interface can only contain method signatures(name, parameters), not also the implementation of these methods. Interfaces are a way to achieve polymorphism. Polymorphism means “to have many forms”, so an interface can be used to call functions from different Codeunits, bearing the same name, but each having different behaviors. Before an interface can be used, one or more Codeunits must implement that interface.