Book Image

Dynamics 365 Business Central Development Quick Start Guide

By : Stefano Demiliani, Duilio Tacconi
Book Image

Dynamics 365 Business Central Development Quick Start Guide

By: Stefano Demiliani, Duilio Tacconi

Overview of this book

Microsoft Dynamics 365 Business Central is the new SaaS ERP proposition from Microsoft. This latest version has many exciting features guaranteed to make your life easier. This book is an ideal guide to Dynamics 365 Business Central and will help you get started with implementing and designing solutions for real-world scenarios. This book will take you through the fundamental topics for implementing solutions based on Dynamics 365 Business Central (on-premise and SaaS). We'll see the core topics of the new development model (based on extensions) and we'll see how to create applications with the new Microsoft ERP proposition. The book begins by explaining the basics of Dynamics 365 Business Central and the Microsoft ERP proposition. We will then cover topics such as extensions, the new modern development model of Visual studio code, sandboxes, Docker, and many others. By the end of the book, you will have learned how to debug and compile extensions and to deploy them to the cloud and on-premise.You will also have learned how to create serverless business processes for Microsoft Dynamics 365 Business Central.
Table of Contents (13 chapters)
Title Page
Packt Upsell
Contributors
Preface
Index

Preface

With the release of Dynamics 365 Business Central, Microsoft has changed the world of the traditional ERP. Now we have an ERP platform that's totally integrated with the Office 365 ecosystem and able to work in the cloud (SaaS) and on-premise. Dynamics 365 Business Central is a big change also in the programming model: now we have extensions and a completely new platform for development.

This book aims to be a guide on developing and deploying solutions with Dynamics 365 Business Central. It covers all the essentials of extensions development and all you need in order to create your solutions on the new ERP platform.

By the end of this book, you will have mastered Dynamics 365 Business Central solution development.

Who this book is for

The target audience of this book is essentially the following:

  • Dynamics 365 Business Central solution developers
  • IT solution architects (mainly involved in implementing ERP solutions based on the Dynamics 365 Business Central platform)
  • Designers of business applications

This book assumes that the readers have a working knowledge of the C/AL language and that they are able to developing solutions with C/AL and C/SIDE. A basic knowledge of C#, Visual Studio, web services, and REST protocols will be useful. 

What this book covers

Chapter 1, Microsoft Dynamics 365 Business Central Overview, introduces the readers to the new Microsoft SaaS ERP platform. It explains the new architecture, how it differs from the on-premise traditional ERP proposition, and the benefits of adopting a completely cloud solution.

Chapter 2, The New Extension Model, explains the basic concepts of the new development framework for Dynamics 365 Business Central (triggers, events), describes how it differs from the traditional programming model based on C/AL, and introduces the new concept of apps.

Chapter 3, Modern Development Environment Overview, describes the new programming platform for Dynamics 365 Business Central based on Visual Studio Code and the AL extension, with tips on how to customize your development environment to be more proficient when programming and how to configure the environment for developing your first extension.

Chapter 4, Creating Your Development Sandbox, introduces the concept of Dynamics 365 Business Central sandbox environments (cloud-based or Docker-based), introduces the concept of Docker containers, and explains how to create an environment for developing solutions with Dynamics 365 Business Central.

Chapter 5, Developing an Extension with AL and Visual Studio Code, describes how to develop a complete solution for Dynamics 365 Business Central by using the new AL language and Visual Studio Code. Starting from a business scenario, we develop a complete solution that creates new objects and extends the standard functionalities of Microsoft's ERP. Programming rules and many architectural concepts, such as dependencies, will be explained in this chapter. 

Chapter 6, Deploying Extensions, describes how to deploy and debug an extension for Dynamics 365 Business Central. You will see how to debug AL code from Visual Studio Code and how to publish an extension in a sandbox environment or in a production environment.

Chapter 7, Integration and Serverless Processing, describes how to integrate an external solution with Dynamics 365 Business Central (by using REST API or web services), how to create service-oriented solutions with AL, and how to use other Dynamics 365 products, such as Flow and PowerApps, to create business applications that work with Dynamics 365 Business Central.

 

To get the most out of this book

The readers should have a basic knowledge of the C/AL language and the old Microsoft Dynamics ERP platform (Dynamics NAV).

The readers should have a trial version of Dynamics 365 Business Central. A trial version can be activated by going to https://trials.dynamics.com/Dynamics365/Signup/BusinessCentral.

The readers should have Visual Studio Code installed on their local machine. Visual Studio Code can be downloaded from the following link: https://code.visualstudio.com/download.

Download the example code files

You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packtpub.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Dynamics-365-Business-Central-Development-Quick-Start-Guide. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: http://www.packtpub.com/sites/default/files/downloads/Dynamics365BusinessCentralDevelopmentQuickStartGuide_ColorImages.pdf.

 

 

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Mount the downloaded WebStorm-10*.dmg disk image file as another disk in your system."

A block of code is set as follows:

finsql.exe Command=generatesymbolreference, Database="Demo Database NAV (11-0)", ServerName=NAVSRV

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

// Example:
// "Print to console": {
//  "prefix": "log",
//  "body": [
//      "console.log('$1');",
//      "$2
//  ],
//  "description": "Log output to console"

Any command-line input or output is written as follows:

docker ps

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Select System info from the Administration panel."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email [email protected] and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected].

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packtpub.com.