Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Microsoft Dynamics 365 Business Central Cookbook
Microsoft Dynamics 365 Business Central Cookbook

Microsoft Dynamics 365 Business Central Cookbook: Effective recipes for developing and deploying applications with Dynamics 365 Business Central

Arrow left icon
Profile Icon Michael Glue
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (3 Ratings)
Paperback Aug 2019 380 pages 1st Edition
eBook
₱1399.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial
Arrow left icon
Profile Icon Michael Glue
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Full star icon 5 (3 Ratings)
Paperback Aug 2019 380 pages 1st Edition
eBook
₱1399.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial
eBook
₱1399.99 ₱2000.99
Paperback
₱2500.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Microsoft Dynamics 365 Business Central Cookbook

Customizing What's Already There

If you've worked your way through Chapter 1, Let's Get the Basics out of the Way, then you know that we've been building a Business Central application that lets us track a list of television shows. Although it's a brand new feature that we have added to Business Central, it's not terribly exciting. Now, let's take that new feature and integrate it into the base Business Central application so that we can track a customer's favorite television shows.

That's right. Not only can you create brand new features, but you can also integrate them into the existing features and logic in Business Central in order to customize the way the system works, which is what this chapter is all about.

In this chapter, we will cover the following recipes:

  • Adding fields to base application tables
  • Modifying the base application...

Technical requirements

We're going to build upon what we started in Chapter 1, Let's Get the Basics out of the Way, so if you've not worked through that chapter, you should do that now so that you can get your development sandbox set up and Visual Studio Code configured.

Code samples and scripts are available on GitHub. Each of the recipes in this chapter builds on the previous recipe, so you can always download the previous recipe's code to get a quick jump on things if you don't want to work through them all in order. You can download everything from https://github.com/PacktPublishing/Microsoft-Dynamics-365-Business-Central-Cookbook.

Adding fields to base application tables

It's one thing to create brand new tables in order to track new information that doesn't exist in Business Central, but what if you just need to track a few additional pieces of data for an entity that is already part of the base application?

This recipe is going to show you how you can add a new field to the Customer table.

Some might refer to this process as customizing Business Central, but I'll be referring to it as extending the Business Central application.

Getting ready

You're going to need a Business Central AL development project to work in that's connected to a development sandbox. We will continue to build on the project that we created in Chapter...

Modifying the base application interface

Being able to add new fields to pages, or new actions to the page ribbons, is very common practice, and, luckily for us, it is incredibly easy!

This recipe will show you how to make two changes to the customer card. First, we're going to add a new field, and then we'll add a new action button to the page ribbon.

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We will continue to build on the project that we started in Chapter 1, Let's Get the Basics out of the Way. You can download that from the GitHub link at the start of this chapter.

Even if you have been working along, you're still going to need...

Modifying the base application business logic

Being able to enhance and modify the logic within Business Central is incredibly powerful, and it's possible without changing any of the base application source code!

This recipe will show you how to modify the sales document posting routine to add a check to make sure the customer has a favorite television show. I know; it's a completely logical and useful thing for an ERP system to have, right?

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We will continue to build on the project that we started in this chapter. You can download this from the GitHub link at the start of this chapter.

...

Using In-client Designer

While it's certainly easy enough to code a new page layout in AL, or modify an existing page layout with a page extension, there is another way that you can do this: using Designer, which resides directly in the Business Central web client!

This recipe will show you how to launch Designer from Visual Studio Code, make some changes to an existing page layout, and then bring those changes back into your AL project.

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We will continue to build on the project that we started in this chapter. You can download that from the GitHub link at the start of this chapter.

...

Using Event Recorder

Earlier in this chapter, the Modifying the base application business logic recipe showed you how you can modify the existing business logic in Business Central. That recipe showed you what event you needed to subscribe to, but what if you didn't know what events were available to you? What if you know you want to modify a specific processing routine but don't know what events, if any, are in that routine?

Here, Event Recorder enters the picture.

With Event Recorder, you can discover what events have been raised in the system, whether they are part of the base application, or whether they are part of another application that's installed.

This recipe will show you how to launch Event Recorder and use it to determine what events are in the sales order release routine.

...

Replacing base application reports

Business Central is jammed full of great reports. Sometimes, however, those reports are not entirely what the user needs to see, and sometimes, adding a custom layout to the report is just not enough as we need to access new logic or new tables and fields. In these scenarios, what we need to do is replace the base report with our own modified version. Luckily for us, this has been made easy using a Business Central application!

This recipe will show you how to replace the Customer Listing report with a modified version that shows the television shows defined for the customer.

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We...

Adding new profiles and role centers

One of the strengths of Business Central is that it's a role-based experience for every user. If you're a sales-order entry clerk, then when you log in, you will see sales tasks that relate to your job. If you're a warehouse worker, then logging in will take you to tasks that are specific to a warehouse employee. The main point is that every user can have a tailored experience so they only need to navigate through tasks and information that they need to see.

This is done by assigning each user to a profile, which in turn assigns them to a specific role center. That role center is the very first screen that the user sees when they log in, so it's important that the contents of that screen make sense to them.

This recipe will show you how to create a new profile that can be assigned to a user, as well as a new role center...

Adding filter tokens

Being able to filter lists of data in Business Central is an incredibly powerful feature. At the basic level, you can filter a list by any field that is in the table, not just what is showing in the list. We can go beyond that though and create our own filter tokens, which will allow us to filter the list in ways that cannot necessarily be done using simple field filters.

This recipe will show you how to add a new filter token that will allow you to quickly filter the Customer List page to show only the customers that have television shows defined.

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We will continue to build on the project that...

Adding application areas

Application areas let you break down your application into multiple user experiences. One example is that you can identify basic as opposed to advanced features so that a new user can turn off the advanced ones until they are more comfortable with the system.

By implementing application areas in your application, when an application area is disabled, all the on screen controls (fields, actions, parts, and so on) are not visible or searchable to the user.

This recipe will show you how to add a new application area to Business Central.

Getting ready

You're going to need an AL project to work in that's connected to a development sandbox. We will continue to build on the project that we started...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore enhanced functionalities and development best practices in Business Central
  • Develop powerful Business Central projects using the AL language
  • Master the new Business Central with easy-to-follow recipes

Description

Microsoft Dynamics 365 Business Central is a complete business management solution that can help you streamline business processes, connect individual departments in your company, and enhance customer interactions. Ok. That first part was really professional sounding, right? Now, let’s get into what this cookbook is going to do for you: put simply, it’s going to help you get things done. This book will help you get to grips with the latest development features and tools for building applications using Business Central. You’ll find recipes that will guide you in developing and testing applications that can be deployed to the cloud or on-premises. For the old-schoolers out there, you’ll also learn how to take your existing Dynamics NAV customizations and move them to the new AL language platform. Also, if you haven’t figured it out already, we’re going to be using very normal language throughout the book to keep things light. After all, developing applications is fun, so why not have fun learning as well!

Who is this book for?

This book is for Dynamics developers and administrators who want to become efficient in developing and deploying applications in Business Central. Basic knowledge and understanding of Dynamics application development and administration is assumed.

What you will learn

  • Build and deploy Business Central applications
  • Use the cloud or local sandbox for application development
  • Customize and extend your base Business Central application
  • Create external applications that connect to Business Central
  • Create automated tests and debug your applications
  • Connect to external web services from Business Central

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Aug 09, 2019
Length: 380 pages
Edition : 1st
Language : English
ISBN-13 : 9781789958546
Vendor :
Microsoft

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Aug 09, 2019
Length: 380 pages
Edition : 1st
Language : English
ISBN-13 : 9781789958546
Vendor :
Microsoft

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₱260 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 7,961.97
Microsoft Dynamics 365 Business Central Cookbook
₱2500.99
Mastering Microsoft Dynamics 365 Business Central
₱2653.99
Programming Microsoft Dynamics 365 Business Central
₱2806.99
Total 7,961.97 Stars icon

Table of Contents

10 Chapters
Let's Get the Basics out of the Way Chevron down icon Chevron up icon
Customizing What's Already There Chevron down icon Chevron up icon
Let's Go Beyond Chevron down icon Chevron up icon
Testing and Debugging - You Just Gotta Do It Chevron down icon Chevron up icon
Old School, Meet New School Chevron down icon Chevron up icon
Making Your App Extensible Chevron down icon Chevron up icon
Business Central for All Chevron down icon Chevron up icon
DevOps - Don't Live without It Chevron down icon Chevron up icon
Time to Share Your Application! Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Full star icon 5
(3 Ratings)
5 star 100%
4 star 0%
3 star 0%
2 star 0%
1 star 0%
Konstantin Oct 24, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is great! I like the cookbook style, pretty organized and easy to find the peace you're interested in.I found this book very good for intermediate and higher developers level, there a lot of tips useful even for seniors.Still, it will good for beginners too because single project example walk through all chapters and drive you from A to Z starting with development and finishing by deployment.So, if doing modern development for Business Central, I would highly recommend this book!
Amazon Verified review Amazon
cici dai Nov 08, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
You can find almost all your answers from this book. It's like a library of Dynamics 365. Save your time to search answers online. This book is well organized and easy to follow. I would highly recommend it!
Amazon Verified review Amazon
Anil Momin Nov 28, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Its a really great book for developer starting to know AL language and Business Central. The book is written in a manner that any one who is even starting with AL can understand through many great examples spread around each chapter which can ramp up you knowledge of AL and Business Central. Another good thing about the book is the simple flow of concepts which actually help creating links between ideas as you read. I would strongly recommend this book to people starting with AL and Dynamics 365 Business Central
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.