Home /

AL Language

61 articles
AL Language

My Contributions to BC2024 wave 1 (D365 Sales/CE related)

As we are close to another major release, I will try to share some insights into upcoming changes. I do not want to repeat other authors and blog posts, as I think there are already enough posts about the most visible changes. Instead, I will describe the changes I made through the Business Central contribution

3 min read
AL Language

Replace NoSeriesManagement with the new BC Foundation No. Series app (1/2)

In BC 2024 wave 1, Microsoft will introduce a new Business Central Foundation Layer with the first app – redesigned No. Series. A few weeks back, Microsoft merged their changes into the BCApps repository (see the pull request here: Introducing new Business Foundation layer – No. Series by AndreasMoth · Pull Request #319 · microsoft/BCApps

3 min read
AL Language

BC Open Source? How to start?

BC Open Source? How to start? One of the most exciting news introduced last month in Lyon during Directions EMEA 2023 was the changes to the open-source initiative. This means that you can now contribute to the source code of the Base app and the System app, which are now based on the main development

8 min read
AL Language

Validate a FlowField Field. Wait? What?

Validate a FlowField Field. Wait? What? There are not many things in the AL Language that surprised me. However, last week, I found one such thing – I reviewed customizations made by another partner and had to analyze the OOTB code of the Demand Forecast matrix. I run a debugger and end up in the

3 min read
AL Language

Synchronizing countries from D365 Sales to D365 Business Central

Surprisingly, the out-of-the-box integration between Microsoft Dynamics 365 Sales and Microsoft Dynamics 365 Business Central does not synchronize countries. Why? Because it could be hard to maintain this synchronization as, by default, the country field in D365 Sales is just a plain text field (and, as you know, in Business Central, we have a standalone

3 min read
AL Language

Dynamics NAV 2013 & Expired Cronus License

We found an interesting problem – we were not able to run the development environment for Dynamics NAV 2013. Whenever we tried to run the development client, we got the following error message: “Your program license has expired” and the development client has closed (and we were not able to change the license). As you

2 min read
AL Language

Time, DateTime, Production Orders and Time Zones – not what I expected

I decided to write this post to describe a problem we are dealing with when we are working with production orders through API or when there are users working in different time zones. Let’s start with a quick introduction. Business Central has two datatypes that can store times – Time and DateTime. What is the

5 min read
AL Language

Indirect Dependencies and Access Modifiers

Last week, there was a discussion on Yammer on how to get values from the “Sent Email” record when all fields are marked as Internal. I was surprised that many people do not know what can/can’t access modifiers (such as local, protected, or internal) be used for. I thought that this was widely known information,

3 min read
AL Language

AL Extensions: Replace Document Attachment

I have published a new simple, open-source extension that allows replacing existing document attachments in all master entities as well as in open documents. The source code as well as the app file that can be installed in your environment is available on my GitHub using this link: TKapitan/AL-Example-ReplaceDocAttachment: AL Example – How to replace

1 min read
AL Language

Clean up your copied environments

One of the most important things every developer should handle is to clean up the environment when the environment (or a company) is copied. Especially if the environment is managed directly by a client and they can create new copies anytime. Similarly, for copied companies. How to do this? It’s really easy. Microsoft is already

2 min read
AL Language

7 git commands you should know

For many years, developers in C/AL did not need to know anything about Git or other versioning tools. That has changed with Business Central, or more specifically with AL Language. Today, we will look at the most important (and basic) git commands any developer should know. These commands are usually quicker and more professional than

5 min read
AL Language

How to define the source for item reservations?

It’s not uncommon to have a customer’s request to limit from which source items could be reserved. For example, customers may not want to reserve items from return orders. How can we achieve this goal? It’s really simple. All the magic is done in the procedure SetValueArray(…) in codeunit 99000845 “Reservation Management”. As we are

3 min read