Hello everyone.
Yesterday I saw a notice from Mr. Freddy Kristiansen that Microsoft have changed the policy for prefix/suffix registrations for Business Central apps for AppSource.
![](https://yzhums.com/wp-content/uploads/2020/10/image-491.png)
MS Docs:
Benefits and Guidelines for using a Prefix or Suffix
General rules
The prefix/suffix must be at least 3 characters
The object/field name must start or end with the prefix/suffix
If a conflict arises, the one who registered the prefix/suffix always wins
For your own pages/tables/codeunits, you must set the prefix/suffix at the top object level
For pages/tables in the base application or other apps that you extend, you must set the prefix/suffix at the top object level and also at the control/field/action level
Use the AppSourceCop tool to find all missing prefixes and/or suffixes. Configuration options for this tool can be found here. The Rules section explains the different checks that the analyzer will do. For prefix/suffix detection, refer to the Configuration section. It explains how to set your prefix in the AppSourceCop.json file.
PS: How to use the AppSourceCop tool.
First, enable Code analysis in settings.json.
![](https://yzhums.com/wp-content/uploads/2020/10/image-496.png)
Then, create “AppSourceCop.json” setting file and set your prefix or suffix in it.
![](https://yzhums.com/wp-content/uploads/2020/10/image-495.png)
After you save, the prefix or suffix will automatically be checked.
![](https://yzhums.com/wp-content/uploads/2020/10/image-494.png)
If you want to understand Code analysis in Business Central, you can refer to the following blog. (Japanese)
Dynamics 365 Business Centralのコード分析機能を利用してコードの品質を上げよう (AL CodeCop)
Hope this will help.
Thanks.
コメント