Reader small image

You're reading from  Dynamics 365 Business Central Development Quick Start Guide

Product typeBook
Published inAug 2018
PublisherPackt
ISBN-139781789347463
Edition1st Edition
Concepts
Right arrow
Authors (2):
Stefano Demiliani
Stefano Demiliani
author image
Stefano Demiliani

Stefano Demiliani is a Microsoft MVP on Business Applications and Azure, MCT, Microsoft Certified Solution Developer (MCSD), Azure Certified Architect, and an expert in other Microsoft related technologies. His main activity is architecting and developing enterprise solutions based on the entire stack of Microsoft technologies (mainly focused on ERP and serverless applications). He has worked with Packt Publishing on many IT books related to Azure cloud applications and Dynamics 365 Business Central and is a frequent speaker at IT conferences around Europe. In his free time Stefano is also a runner and a cyclist.
Read more about Stefano Demiliani

Duilio Tacconi
Duilio Tacconi
author image
Duilio Tacconi

Duilio Tacconi is a Microsoft Dynamics NAV/Microsoft Dynamics 365 Business Central Escalation Engineer at Microsoft EMEA Customer Support & Services (CSS). He joined Microsoft in 2008 after working in a customer IT department with a focus on system administration and development. Despite graduating with the highest score in Agricultural Science in 1996, he is in the ERP circuit since 1998 as developer and system implementer for several companies with Microsoft and non-Microsoft technologies. Currently, he is a subject matter expert in EMEA for RDLC Report development and one of Microsoft EMEA CSS reference for Managed Service for Partners (MSfP). Three times IronMan finisher, Duilio lives in Cernusco Sul Naviglio (Italy) with his beloved wife Laura and his 2 years old son Leonardo.
Read more about Duilio Tacconi

View More author details
Right arrow

Chapter 3. Modern Development Environment Overview

In Chapter 2The New Extension Model, we introduced what extending an application means and we tasted the new extensibility model for Microsoft Dynamics 365 Business Central.

In this chapter, we will provide you with an overview of the new Microsoft Dynamics 365 Business Central modern development environment and we will help you to configure its core application, Visual Studio Code, for developing extensions and solutions targeted for a single tenant or SaaSified for AppSource. SaaSify is a neologism typically used by Microsoft Dynamics NAV developers when moving standard legacy C/AL customization to certified cloud-ready AL solutions for Microsoft Dynamics 365 Business Central.

We will also learn how to use and create customized AL snippets to squeeze the maximum out of an efficient development environment.

By the end of the chapter, we will have also learned source-code management (SCM) with the powerful Visual Studio Code Git native integration...

Modern versus classic development environments


The history and success of Microsoft Dynamics 365 Business Central's predecessor, Microsoft Dynamics NAV, starts with classic client.

From day one, this Visual C++ application was promising and after some decades of glory its retirement looks quite near. It will be replaced by the more modern, shiny, multi-platform, web application development-oriented Visual Studio Code.

Classic client used to be a two-sided application: a first-in-class production client for end users and at the same time a suitable workbench for developers.

With Microsoft Dynamics NAV 2013, it was deprecated as a production client and just simply named CSIDE (Client server integrated development environment), relegated to only a development application targeted as a Windows and/or web client.

Characteristics and advantages of CSIDE

CSIDE comes with native support for a proprietary language called C/AL (Client/Application Language), a solid and robust development language engineered...

The AL Extension


Visual Studio Code can be considered just a simple and powerful code editor as is.

What gives this application its sixth gear and credentials as a real modern development environment is the AL Extension created and engineered by the Microsoft Dynamics 365 Business Central Development Team.

The AL Extension is Built using the standard Visual Studio Code API; it can be deployed in the following ways:

  • Directly as a downloadable package from the Visual Studio Code marketplace. Targeted only for Microsoft Dynamics 365 Business Central.
  • Manually as an installable package (VSIX) from the product DVD. Targeted only for on- premises Microsoft Dynamics NAV.

Even if they might look like the same, they are consistently different, since VSIX is coming from the on-premises product DVD and is currently just a cut-off, limited version from the fall of 2017 and does not contain all the enhancements and new features made by the modern development team up to now. These features will be exclusively...

AL snippets


Code snippets are pieces or small template of codes that can be recycled and reused through the intellisense feature for fast application coding. These are typically used to rapidly create

  • Object structure definition (for example, a table, field, page, report, xmlport, and so on)
  • Looping statements (for example, for, repeat until, while, and so on)

AL Snippets come with the prefix t, followed by a meaningful name. To show them up, go to the HelloWorld.al, hit return at the end of Message(…), and type t. Intellisense will show up a list for the current standard code snippets dispatched with AL Extension for Microsoft Dynamics 365 Business Central.

You can practice yourself by choosing some of them and populating the relevant placeholders to create a meaningful script. 

You can see from this table a list of the standard snippets. This standard list can be extended in future updates and enhanced for AL Extension:

Native AL source-code management with Git


The Source-Code Management (SCM) is a problem that is amplified coming from a single object created and maintained by a single person for up to several objects (also called a project or, with more complexity, solution) developed by several persons (also known as teams).

As developers, document and tracking changes is a must, as well as maintaining a chronological history of these changes, the people who performed these changes, and the business reason that lies behind these changes.

Looking at the CSIDE Development Environment, this really has zero footprint out of the box and no documentation related to source-code management. If you browse through official literature or blogs, you might find out how hard it is to maintain a vertical solution with on-premises Microsoft Dynamics NAV in terms of version control, using CSIDE. You might find out partners or customers who blogged about using the Microsoft Visual Studio Team Foundation to track changes...

Summary


This chapter has shown you how to set up Visual Studio Code as a modern development environment for Microsoft Dynamics 365 Business Central and how to get started developing your very first extension with AL.

You learned how to work with code snippets, to improve development productivity.

The chapter also gave you a brief introduction to source-code management with Git.

Now you know all you need to know to use Visual Studio Code to develop custom applications. In Chapter 4Creating Your Development Sandbox, we'll see how to use all these concepts to create a more complex extension.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Dynamics 365 Business Central Development Quick Start Guide
Published in: Aug 2018Publisher: PacktISBN-13: 9781789347463
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (2)

author image
Stefano Demiliani

Stefano Demiliani is a Microsoft MVP on Business Applications and Azure, MCT, Microsoft Certified Solution Developer (MCSD), Azure Certified Architect, and an expert in other Microsoft related technologies. His main activity is architecting and developing enterprise solutions based on the entire stack of Microsoft technologies (mainly focused on ERP and serverless applications). He has worked with Packt Publishing on many IT books related to Azure cloud applications and Dynamics 365 Business Central and is a frequent speaker at IT conferences around Europe. In his free time Stefano is also a runner and a cyclist.
Read more about Stefano Demiliani

author image
Duilio Tacconi

Duilio Tacconi is a Microsoft Dynamics NAV/Microsoft Dynamics 365 Business Central Escalation Engineer at Microsoft EMEA Customer Support & Services (CSS). He joined Microsoft in 2008 after working in a customer IT department with a focus on system administration and development. Despite graduating with the highest score in Agricultural Science in 1996, he is in the ERP circuit since 1998 as developer and system implementer for several companies with Microsoft and non-Microsoft technologies. Currently, he is a subject matter expert in EMEA for RDLC Report development and one of Microsoft EMEA CSS reference for Managed Service for Partners (MSfP). Three times IronMan finisher, Duilio lives in Cernusco Sul Naviglio (Italy) with his beloved wife Laura and his 2 years old son Leonardo.
Read more about Duilio Tacconi

Metadata Structure

Statement Brick

Field

Object

taction

tassert

tfield

tcodeunit...