Home /

AL Language

63 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

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
CRM Integration

CRM Integration: Add a custom field to the existing CRM table

In the past weeks, I got a few questions about Microsoft Dynamics 365 Sales and Business Central Integration. I did some integration projects in past, but I also have experience with a heavily customized solution from this year. As a lot of questions were about how to extend the integration (and I agree that it’s

4 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

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
AL Language

NavigationAction for ErrorInfo data type

One more article about ErrorInfo data type. Have you already read my previous posts about ErrorInfo and Collectible Errors? Navigation Action for Errors You already know the custom actions for error messages from my previous post. However, the upcoming release (Microsoft Dynamics 365 Business Central 2023 wave 1 contains one more interesting enhancement for error

3 min read