Skip to main content

Few things that can save you a lot of hassle in Per Tenant Extension Code Upgrade in Microsoft Dynamics 365 Business Central Wave 2 (version 15) Upgrade

Problem Statement:

With a change in Business Central Version from Version 14 to Version 15, I had noticed a few things got deprecated. Instead, these functions where deprecated and overloaded which why function definition remains the same but the parameters change.


In this blog, let us discuss the changes in Business Central BaseApp coding that can possibly break your extension and prevent you from upgrading. 

Also, I will be discussing the list data type introduced since the 2019 Wave 2 release.


Microsoft Dynamics Business Central Version 14
Microsoft Dynamics Business Central Version 15

Books & References:

List DataType


In this blog, let us take an emailing codeunit as a use-case.

1. Change in Variable Declaration:
Earlier in Emailing functionality, we made use of Text to store the Email. For multiple emails, we would append a  SEMICOLON ';' after each recipient.
Text Variable Declaration

Now, Text is replaced by List of Text and we don't need to add SEMICOLON ';' in between
List of Text  variable declaration
2. Change in Codes and functions:
 With respect to the SMTP Mail codeunit, the function is deprecated and overloaded with another function. Also, the deprecated function uses the newly created function
Change in functions

3. Fixing the code:

After the change of the standard codeunit, your functionality code also requires change so that even if the function in support right now but it can be deprecated pretty soon and that your upgrade process should be smooth.
Errors in Version 14 Extension Code
The fix for this is as below.
Old Email Appending Code replaced with ListVariable.Add() function
Change in function parameters

4. List DataType:
List Data Type is pretty straightforward in terms of usage.
You can refer

The illustrated examples can help you understand the functionality pretty easily.

Just to add, I have copied the syntax from
you can add and retrieve data using Get() and Set() methods.

Also, could this mean that Lists are replacing arrays in the near future??
Let me know your comments.

5. TempBlob is marked for removal:
A simple solution is to replace TempBlob record with TempBlob codeunit.
Basically, all the functions inside TempBlob tables will be copied in TempBlob Codeunit.

6. Deploying the app:
In order to deploy your app to version 15, you will need to change the app.json file and deploy as the next major version.

Refer Dmitry Katson's blog


In this blog, I have attempted to give a glimpse of what I had to change in order to prevent my package from breaking in Business Central version 15 Upgrade.
Also, if I find a few more changes that can break your code I will post it in continuation of this blog.

In the upcoming blogs, I'm planning to write about the new DataTypes that have been added to Microsoft Dynamics Business Central since 2019  Wave 2 Version 15.

Hope this helps :)


Popular posts from this blog

Understanding and How to use APIs Business Central - 2

Introduction: In my last blog post ( Business Central API -1 ) on Creating API in Business Central, we discussed all the commonly used properties of the page, query, and controls like field and data-item. In today's blog, we will be diving deeply into the validation of the data passed through the API endpoint, how it enters into the source tables and is manipulated to be inserted/modified into single or multiple tables. Also, I will be demonstrating how APIs are to be used. Pre-requisites: Microsoft Dynamics Business Central (SaaS) VS Code( ) AL Language Extension( ) API V1 from Business Central On-Premise DVD Books & References: API V1 from Business Central On-Premise DVD API(V1.0) for Business Central ( Click Here ) API(Beta) for Business Central ( Click Here ) Theory: Understanding API in Business Central 1. BINDSUBSCRIPTIONS: Use to trigger IntegrationEvent for the Codeunit stated

Enum Object in Business Central - How to create and how to extend!

Introduction: Since the dawn of Business Central Era (2nd April 2018 - Today), there are many new data types introduced by Microsoft. One such data type is Enum(Enumeration). Essentially, what enumeration is having a single select value with multiple options at a given time! Well, I know what your thinking what about the 'Option' data type. Anyways, enough of talking let's just dive in! Disclaimer:   The knowledge in this blog is true and complete to the best of authors and publishers knowledge. The author and publisher disclaim any liability in connection with the use of this information. Pre-requisites: Microsoft Dynamics Business Central (SaaS or On-Premise) VS code with AL Language extension Code: 1. Enum as an Object: Just like Tables and Pages, Enum behaves like an Object. Enum Object Note that Extensible means that the Enum Object can be extended in another module. By default, this property is set to TRUE. Enums created in a module(App), ca

Creating APIs in Business Central - 1

Introduction: While writing a blog on Automated Testing in Business Central, I was going through sample apps provided by Microsoft and realized that the complexity is nowhere close to what examples Microsoft has provided on In this blog, I will try to explain how APIs work and how to be creative with the implementation. Also, an API which were in beta are finally out with version V1.0 in the April 2019 release let's see some important key things from development aspects. This blog is going to be theoretical one kindly bear with me. Pre-requisites: Microsoft Dynamics Business Central (SaaS) VS Code( ) AL Language Extension( ) API V1 from Business Central On-Premise DVD Books & References: API V1 from Business Central On-Premise DVD API(V1.0) for Business Central ( Click Here ) API(Beta) for Business Central ( Click Here ) Solution: Key Requirements: API source table