Dynamics 365 Business Central Development Quick Start Guide - Stefano Demiliani - E-Book

Dynamics 365 Business Central Development Quick Start Guide E-Book

Stefano Demiliani

0,0
23,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

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.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 166

Veröffentlichungsjahr: 2018

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Dynamics 365 Business Central Development Quick Start Guide

 

 

 

 

 

 

 

Modern development techniques for Dynamics 365 Business Central

 

 

 

 

 

 

 

 

 

Stefano Demiliani
Duilio Tacconi

 

 

 

 

 

 

 

 

 

 

 

BIRMINGHAM - MUMBAI

Dynamics 365 Business Central Development Quick Start Guide

Copyright © 2018 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author(s), nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Pavan RamchandaniAcquisition Editor:Siddharth MandalContent Development Editor:Mohammed Yusuf ImaratwaleTechnical Editor: Sushmeeta JenaCopy Editor: Safis EditingProject Coordinator: Hardik BhindeProofreader: Safis EditingIndexer:Tejal Daruwale SoniGraphics:Jason MonteiroProduction Coordinator: Nilesh Mohite

First published: August 2018

Production reference: 1240818

Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.

ISBN 978-1-78934-746-3

www.packtpub.com

 
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?

Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

Improve your learning with Skill Plans built especially for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content

PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. 

Contributors

About the authors

Stefano Demiliani is a Microsoft MVP on business applications, a Microsoft Certified Solution Developer, and a long-time expert on different Microsoft technologies.

He has a master's degree in Computer Engineering from Politecnico of Turin, he works as a CTO for EID/Navlab (one of the main Microsoft Partners in Italy), and he has recently moved many customers around the globe onto the cloud.

He has worked with Packt Publishing on many IT books, and he's the author of Building ERP Solutions with Microsoft Dynamics NAV (a hands-on guide on building enterprise architectures based on the Microsoft Dynamics NAV ERP and Azure) and Implementing Azure Cloud Design Patterns. You can reach him on Twitter (@demiliani) or on LinkedIn. 

We hope that this book will help you to be successful with this jump. Thanks to all the wonderful staff that has worked with me on this book (especially Duilio for consenting to be on board), and thanks also to my family (I'll return to you all the hours spent working on this project). I would like to dedicate this book to my little daughter, Sara: I love you. Maybe one day you will be proud of me for this.

Duilio Tacconi is a Microsoft Dynamics NAV/Microsoft Dynamics 365 Business Central Escalation Engineer at Microsoft EMEA Customer Support and Services (CSS). He joined Microsoft in 2008 after working in a

customer IT department with a focus primarily on system administration and development. 

Despite graduating with the highest score in Agricultural Science in 1996, he has been on the ERP circuit since 1998 as a developer and a system implementer for several companies with Microsoft and non-Microsoft technologies.

Currently, he is a SME at EMEA and one of Microsoft EMEA CSS references for Managed Service for Partners

Three times Iron Man finisher, Duilio lives in Cernusco Sul Naviglio (Italy) with his beloved wife, Laura, and his son, Leonardo.

Born with the heart and soul of Microsoft Dynamics NAV, Microsoft Dynamics 365 Business Central has all the features, tools, and power needed to dominate the SMB market over the next few decades.Thanks to all the Packt guys for all the professional help, and a warm thank you to Stefano for dragging me into this project. I dedicate this book to Laura: my love, my life, and special half.

About the reviewers

In 1999, Luc van Vugt stepped into the NAV world, training hundreds of developers, most of whom are still around.

After Microsoft acquired Navision, Luc joined the Dynamics localization team GDL as tester, UA specialist, and project lead. For 6 years, he was involved with all successive releases.

Since he left Microsoft, Luc has become an active community member by means of his blog, co-founder of the Dutch Dynamics Community, and a speaker at conferences. In 2014, he co-founded NAV Skills supporting NAV pros around the globe with, among others, webinars. Luc has also been awarded MS MVP since 2011.

In 2012, Luc started fluxxus.nl, doing miscellaneous projects including NAV development courses and workshops on design patterns and automated testing.

Next to my wife Saskia, our three great kids, and friends, who keep me growing as a human being, I would like to acknowledge Hardik Bhinde at Packt for very effective and efficient cooperation.

 

Eric is one of the founding partners of iFacto Business Solutions and Cloud Ready Software. With his 18 years of technical expertise, he is an everyday inspiration to its development teams. As development manager, he continually acts upon the technical readiness of iFacto and CRS.Apart from that, Eric is also very active in the NAV community, where he tries to solve technical issues and shares his knowledge with other Dynamics enthusiasts. Surely, many among you will have read some of Eric’s posts, which he invariably signs with waldo. Lots of people have been using and even contributing to tools he shares for free on GitHub.His proven track record entitled him to be awarded since 2007 as Microsoft MVP (Most Valuable Professional).

 

 

 

 

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Table of Contents

Title Page

Copyright and Credits

Dynamics 365 Business Central Development Quick Start Guide

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the authors

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Microsoft Dynamics 365 Business Central Overview

Introducing Microsoft Dynamics 365 Business Central

A brief history of the Microsoft Dynamics cloud-based ERP SMB product

Microsoft Dynamics 365 Business Central Architecture

On-premises versus cloud-based deployment

Infrastructure costs, maintenance, and availability

Security

Performances

Scalability

Upgrades

Customizations

User experience

Summary 

The New Extension Model

Traditional Microsoft Dynamics NAV customizations

Triggers versus Events

The new Extensions 2.0 model

Running C/SIDE and AL side by side

Scalable and SaaS-ready solutions

Summary

Modern Development Environment Overview

Modern versus classic development environments

Characteristics and advantages of CSIDE

Characteristics and advantages of Visual Studio Code

Anatomy of Visual Studio Code workspace

Menu bar

View bar

Sidebar

Code editor

Status bar

Tips to work efficiently in Visual Studio Code

The AL Extension

Comparison of capabilities supported by CSIDE and Visual Studio Code

Getting started with AL language

Developing your first extension with AL language

HelloWorld.al sample

AL snippets

Creating our own snippets

Native AL source-code management with Git

Visual Studio Code support to Git

Summary

Creating Your Development Sandbox

What is a sandbox?

Online sandbox

Azure-hosted sandbox

Local-hosted sandbox

Manually creating a sandbox based on Docker

Steps for manually creating a locally hosted Dynamics 365 Business Central sandbox

Steps for manually creating an Azure Container Instance-based Dynamics 365 Business Central sandbox

Summary

Developing an Extension with AL and VS Code

The business case

Developing the extension

Creating the new tables

Creating the pages for the new tables

Extending standard Dynamics 365 Business Central objects (tables and pages)

Writing the custom business logic (Codeunit)

Handling translations with XLIFF files

Customizing the Headline

Developing a custom report for our extension

Extension dependency

Installing and upgrading codeunits

Summary

Deploying Extensions

What does extension deployment mean?

Automatic deployment

Semi-automatic deployment

Publishing

Syncronizing

Installing

Manual deployment

AL debugger

AL CodeCop

Summary

Integration and Serverless Processing

Dynamics 365 Business Central web services

Dynamics 365 Business Central REST APIs

DotNet variables

Azure Functions

Microsoft Flow

Microsoft PowerApps

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

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:

Log in or register at

www.packtpub.com

.

Select the

SUPPORT

tab.

Click on

Code Downloads & Errata

.

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."

Warnings or important notes appear like this.
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.

Microsoft Dynamics 365 Business Central Overview

 Microsoft Dynamics 365 Business Central is a cloud-based Enterprise Resource Planning (ERP) application delivered with the Software as a Service (SaaS) model through Cloud Solution Provider (CSP) certified partners.

It is part of the Microsoft Dynamics 365 suite (the Microsoft proposition for a new generation of intelligent and integrated business applications) that includes in its portfolio Customer RelationshipManagement (CRM) and ERP software.

In this chapter, we will cover the following topics:

What Microsoft Dynamics 365 Business Central is, what functional areas it covers, and its prices

A history of the Microsoft ERP offering evolution for small to medium-sized businesses, (SMB) in the cloud

An overview of Microsoft Dynamics 365 Business Central architecture

On-premises versus SaaS-based deployments  

Introducing Microsoft Dynamics 365 Business Central

The current Microsoft Dynamics 365 family portfolio could be described as follows.

Here is some information regarding the ERP cloud-based version:

Microsoft Dynamics 365 Business Central

: This targets small to medium-sized businesses. The product has a solid and strong Microsoft Azure footprint. Its application and some core technologies come from a streamlined evolution of Microsoft Dynamics NAV. This has been a well-known market leader in the SMB ERP software segment

for the last 30 years

.

Microsoft Dynamics 365 for Financials & Operations

: This targets enterprise businesses. It represents the transformation equivalent of another historical Microsoft product: Microsoft Dynamics AX.

CRM cloud-based and specific ERP modules offer the following:

Microsoft Dynamics 365 for Sales

Microsoft Dynamics 365 for Customer Service

Microsoft Dynamics 365 for Field Service

Microsoft Dynamics 365 for Project Automation

Microsoft Dynamics 365 for Retail

Microsoft Dynamics 365 for Talent

Microsoft Dynamics 365 for Marketing

For each of these products, Microsoft provides partner and customer full official documentation at the following link: https://dynamics.microsoft.com/.