Category: Code Analyzers

Business Central 2020 Wave 1: New CodeCops

With the release of Business Central 2020 Wave 1 and AL extension new codecops added for more information and making your app more prominent

AA0215 – Checking file naming

This checks file name as per new guidelines and shows warning as below

Following are the new guidelines for this warning

Object NameFile Name
Codeunit 50000 “Post Bank Details”PostBankDetails.Codeunit.al
Page 50000 “Customer Card Ext”CustomerCard.PageExt.al

To Get this done automatically use Waldo’ CRS extension

AA0218,AA0219,AA0218 – Missing and Wrong ToolTips

This will show warning for missing Tooltips as below

AA0470- Comments in Labels

Placeholders should have a comment explaining their content.Provide an explanation that describes the content of each of the placeholders.

To fix this Adding the comment

There are more code analyzer added and you can find this from following link

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/codecop

Stay tuned for more ….

Business Central-Field Length change in Tables

This spring release of business central comes up with changes in field length of tables as below.

You can check those tables and fields in following file

Hope this will help you specially while upgrade.

Please follow Waldo’s blog for more information on above subject.http://www.waldo.be/2019/05/14/microsoft-dynamics-365-business-central-spring-update-changed-some-field-lengths/

Stay tuned for more.

How to Find Missing Prefix or Suffix -Business Central

As you all are aware the importance of having prefix and suffix in your app. In every extension you design need must have prefix or suffix on objects which include Table Extension, Page extension as well as control parts on pages. Benefits of this is that it will avoid collision of fields between two app which customer would like to install.

As a partner you need to register the prefix or suffix by sending email on d365val@microsoft.com. This will helpful when conflict arise so whosever registered will win.

Now when you convert the app from C/AL to AL then you need to huge task to us Prefix or Suffix in entire project.

To find all missing Prefix/Suffix you can enable AppSourceCoup which will help every time.

How to enable AppsourceCoup and complete ruleset You can visit https://amolsalvi.blog/2019/01/31/code-analysis-ruleset-business-central/

Apart from this you can create json file and mention the required prefix or suffix value as below

 {    "mandatoryPrefix": "ABCD"    } 

Hope this will help …


Code Analysis Ruleset-Business Central


A code analyzer is a library that builds on the compiler’s functionality to offer enhanced analysis of the syntax and semantics of your code at build time

CodeCop is an analyzer that enforces the official AL Coding Guidelines

PerTenantExtensionCop is an analyzer that enforces rules that must be respected by extensions meant to be installed for individual tenants

AppSourceCop is an analyzer that enforces rules that must be respected by extensions meant to be published to Microsoft AppSource

UserInterfaceCop is an analyzer that enforces rules that must be respected by extensions meant to be installed for individual tenants

To enable following rules we can use Code Analysis tools

Following are few rules for every code analysis tool .You can download from following file

Hope this will help you all..