Notes on the AL code
Now, some final notes on the code on GitHub and the code examples in the book.
Prefix or suffix
When building your own extension, it is best practice to make use of a so-called "affix" (a 3–6-digit prefix or suffix) in the names of your objects, fields, and controls. Affixes are mandatory for AppSource extensions, and VAR or ISV partners must register an affix with Microsoft. We did choose not to use a prefix/suffix for the following reasons:
- The
LookupValue
extension is not a registered extension. - The use of a prefix/suffix would not contribute to the readability of the code examples.
Note
More information on the usage of a prefix or suffix can be found here: http://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/compliance/apptest-prefix-suffix.
Word wrap
When adding code examples to a book, there is always the challenge of how to neatly format long-lined statements to keep the code readable. In the code...