Access Modifiers in AL
When creating AL extensions for Dynamics 365 Business Central, you can use access modifiers for handling the accessibility level of your AL objects. Access modifiers permits you to control whether an object can be used in your code or in code in other modules (dependent extensions).A table object can have an a access level with the following values:Public (default): The object can be accessed by any other code in the same module and in other modules that references it.Internal: The object can be accessed only by code in the same module, but not from another module.You can change the access level by using the Access property as follows:A field can have an access level with the following values:
- Public (default value): The field can be accessed by any other code in the same extension or another extension that references it.
- Internal: The field can be accessed only by code in the same extension , but not from another extension .
- Local: The field can only be accessed...