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.

4 Comments

  1. Hi Stefano,

    A very interesting post that clarifies many of my doubts. Anyway, I still have two doubts that maybe you can help me.
    – Will the files of the “baseApp” extension be published on the installation DVD?
    – If they are public, is it possible to modify those files and publish the modified baseApp in the environment of my onpremise client?

    The biggest problem that developers have is going to be especially when doing upgrade on clients that have much modified standard. Is it possible to do this? I speak in onpremise environments.

    Thnaks for your time.

    Regards

    Like

  2. Hi,

    Great post and I am really looking forward to get rid of the old code once and for all, but I do have a question you might answer that seems to be very hard to find answer to.

    Will this change be also be for the on premises version, or is it only the SaaS version? (That C/AL is removed)

    Thanks.

    Like

    1. This will happen also for the on-premise version. The platform will be soon moved to full AL. The only difference is that in the on-premise world you will still be able to modify the AL base code as per your needs, while this will not be possible in SaaS.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.