web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Modern Dev Experience in NAV

Tharanga Chandrasekara Profile Picture Tharanga Chandrasekara 23,118
It is a new chapter for Microsoft Dynamics NAV Community! 

Microsoft has released new AL language code samples for developing extensions on Dynamics NAV plaform. Thank you Microsoft Dynamics NAV development team for making this a sucess and releasing this early preview. 

Take a look at how a simple "Hello, World!" codeunit would look like in new syntax. (Ya ya.. Object IDs are still there)


 // ------------------------------------------------------------------------------------------------  
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------
codeunit 70051001 HelloWorld
{
TableNo = Customer;
trigger OnRun();
var
HelloText : Codeunit GreetingsManagement;
begin
Message(HelloText.GetRandomGreeting() + ', ' + Rec.Name);
end;
}

It looks very good and at the first glance codeing looks more like C#, which is good because it will attract new developers to the NAV world.

With new development experience we get a totally new file extention .AL

According to Microsoft, new VS Code development is used for extension development for Microsoft Dynamics NAV and also for Dynamics 365. This means at this stage we still have to stick with the existing Development Enviornment for all the other Dynamics NAV related developments. However in futuer Dynamics NAV Development Environemtn will say goodbye to the NAV world. 

You can access the new released code samples from below link: https://github.com/Microsoft/AL

Looking forward to play with Visual Studio development environment preview which may available for Christmas.

Rome wasn’t built in a day! But we are getrting there!

Please provide your feedback with a comment. 
Thank you and Regards,
Tharanga Chandrasekara

This was originally posted here.

Comments

*This post is locked for comments