Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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

eBook
€8.99 €29.99
Paperback
€36.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Slovenia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Slovenia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

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
€18.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
€189.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 €5 each
Feature tick icon Exclusive print discounts
€264.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 €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 117.97
Microsoft Dynamics 365 Business Central Cookbook
€36.99
Mastering Microsoft Dynamics 365 Business Central
€38.99
Programming Microsoft Dynamics 365 Business Central
€41.99
Total 117.97 Stars icon
Banner background image

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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela