Category: Development
Permanent link to this article: https://www.dvlprlife.com/2022/08/its-friday-august-5/
Jul 29 2022
Pragma and Rulesets let you make or break the rules.
The AL Language extension (the language for developing applications for Microsoft Dynamics 365 Business Central) contains fourcode analyzers for analysis of your code at build time. “Code violations” are displayed in the Problem window when the code is analyzed. The information is valuable for identifying and jumping to Code Analysis Tool rule violations. Now that you potentially have …
Permanent link to this article: https://www.dvlprlife.com/2022/07/rulesets-pragma-i-do-not-want-to-follow-rules/
Jul 25 2022
Business Central Isolated Storage: Keep Out of my Data!
Microsoft Dynamics 365 Business Central Application Developers often need to store sensitive information their application uses. In earlier Dynamics NAV versions, developers often saved this data in table fields. The table field values were accessible to any other application or user that had access to the table. Information such as API keys, user credentials, or …
Permanent link to this article: https://www.dvlprlife.com/2022/07/business-central-isolated-storage-keep-out-of-my-data/
Jul 20 2022
Do Cops write tickets in AL?
The AL Language extension (the language for developing applications for Microsoft Dynamics 365 Business Central) contains four code analyzers for analysis of your code at build time. The AppSourceCop analyzer enforces rules for extensions intended for listing in Microsoft AppSource. Whereas the CodeCop analyzer enforces AL Coding Guidelines and the UICop analyzer enforces rules for …
Permanent link to this article: https://www.dvlprlife.com/2022/07/do-cops-write-tickets-in-al/
Jul 19 2022
Make life easier with Visual Studio Code Snippets
Snippets in Visual Studio code are templates that make it easier to enter repeatable code patterns or blocks. They’re a helpful timesaver when developing applications. I have found significant time savings within Business Central with Snippets for page and table field templates. Visual Studio Code has several built-in Snippets, extension publishers may include Snippets, and …
Permanent link to this article: https://www.dvlprlife.com/2022/07/make-life-easier-with-visual-studio-code-snippets/
Jul 18 2022
Business Central AL ModuleInfo
In the AL Language, the programming language behind Microsoft Dynamics 365 Business Central, the ModuleInfo Data Type provides information about an application. I have often used the ModuleInfo returned by the NavApp to check specific application version information.The NavApp DataType includes information about a NavApp and has a few methods that retrieve a ModuleInfo for …
Permanent link to this article: https://www.dvlprlife.com/2022/07/business-central-al-moduleinfo/
Permanent link to this article: https://www.dvlprlife.com/2022/07/its-friday-july-15/
Jul 05 2022
Add Elements to the Role Explorer
Using the “Role Explorer” in Microsoft Dynamics 365 Business Central, you can get an overview of the features available to your Role. Each of the “Role Explorer” elements is an action, and a means to navigate Microsoft Dynamics 365 Business Central (I have heard this many times referred to as a “menu”).Elements can be added …
Permanent link to this article: https://www.dvlprlife.com/2022/07/add-elements-to-the-role-explorer/
Jun 10 2022
Validate field pattern with Regular Expression in Dynamics 365 Business Central
When accepting user input in a field, it may be necessary to validate that the value matches a particular pattern. In early versions of Microsoft Dynamics NAV, you could use the RegEx dotNet libraries to validate input against a regular expression. The RegEx dotNet libraries are not directly available in Dynamics 365 Business Central; however, …
Permanent link to this article: https://www.dvlprlife.com/2022/06/validate-field-pattern-with-regular-expression-in-dynamics-365-business-central/
Jun 06 2022
Set A Windows Service Log On Account and Password with PowerShell
Repeatability is important! Right alongside that, in my opinion, is efficiency. A recent task required me to set up several Application Services setups, including setting the log on account and password. I could have done all of these manually; however, I found it more efficient and repeatable to set up a script to handle the …
Permanent link to this article: https://www.dvlprlife.com/2022/06/set-a-windows-service-log-on-account-and-password-with-powershell/