Dynamics 365 Business Central February 2019 Dev Preview is full AL: how to create extensions now?

As publicly announced yesterday, the February 2019 Developer Preview for Dynamics 365 Business Central launches the first public version of the application where all the base code is converted from C/AL to AL.

If you open the old C/SIDE Development Environment, what you can immediately see is that you’ve only few system tables and system codeunits but no other application objects:

D365BCFeb19DevPrev_01.jpg

No standard tables, pages, reports, queries, codeunits, XMLports etc. :

D365BCFeb19DevPrev_02.jpg

Now all the base code is in a single AL extension called BaseApp (actually a monolithic app with about 6000 files):

D365BCFeb19DevPrev_03.jpg

If you want to create an extension for this new “absolutely alpha” application version and be able to have the symbols, ACTUALLY (and I repeat, actually!!!) you need to do two things:

  • In your app.json file, add the dependency from the Microsoft’s BaseApp
  • Remove the “application”: “14.0.0.0” line

Your app.json should be:

D365BCFeb19DevPrev_04.jpg

Now you will be able to have the symbols and (expecially) no strange errors during compilation:

D365BCFeb19DevPrev_05.jpg

All will be more stable for sure in the next releases (this is a preview  ) but with these tricks in mind you will not loose too much time on troubleshooting strange errors from Visual Studio Code.

Comment List
Related
Recommended