Namespaces in AL language
Starting from the Dynamics 365 Business Central 2023 Wave 2 release (version 23), the AL language supports namespaces. Namespaces permit you to organize objects and avoid naming conflicts between extensions.
When creating a new extension, now you can declare that an object belongs to a namespace like in the following example:

Figure 6.18: Declaring an object belongs to a namespace
With the namespace keyword we define that the Utilities codeunit belongs to a namespace called SD.Utilities.
Then in our extension’s code we can for example add a new codeunit that belongs to a new namespace, like in the following example:
Figure 6.19: Adding a codeunit to a namespace
Here you can see that this new Base Functions codeunit belongs to the SD.Base namespace. Internally, this codeunit uses standard Dynamics 365 Business Central objects (like codeunit Base64 Convert, interface Azure Functions Authentication, and so on). All these...