Home /

AL Language

63 articles · Page 2 of 6
AL Language

Error actions for ErrorInfo data type

It is already almost one and a half years since the ErrorInfo data type was introduced (we saw this data type for the first time in BC2021w2). If you do not know what it is and how to use this data type, check my previous posts: Since its introduction, some improvements have been added, such

2 min read
AL Language

131005 “Library – Dialog Handler” – build test handlers differently

Test UI Handlers are necessary in many cases if you want to test any logic that shows confirm, message, or different page… The most common are ConfirmHandler (to handle Confirm()) and MessageHandler (to handle Message()). To find out more about Handlers, check Microsoft Learn. This article will take a different approach to creating handlers than

4 min read
AL Language

Debugging and launch.json improvements in BC 2022 wave 2 (v21)

In the new version of Microsoft Dynamics 365 Business Central, there are also some changes to the debugging and launch.json configuration. Launch specific company Having more than one company within your development environment is rare. However, having more companies in a sandbox environment or in a production environment is not so unusual. In that case,

3 min read
AL Language

I’m joining the public BC Base App contribution pilot!

Long-planned change is almost there! Almost two years ago, Microsoft revealed a new plan to allow industry experts to contribute not only to the system apps but also to the base app. And it’s almost there! Right now, the repository is available only for pilot members (check BC TechDays 2022 – Collaborating on Business Central’s

1 min read
Events

DIRECTIONS EMEA 2022, Hamburg, Germany

Do not forget that Early Bird tickets for Directions EMEA 2022 in Hamburg, Germany, end at the end of August. If you still do not have your tickets, take one directly at Directions EMEA 2022 (directions4partners.com) As always, all of the top speakers from Business Central and other Dynamics products will be there (and I

1 min read
AL Language

Collectible Errors?! Is it already in use?

Collectible Errors?! Is it already in use? This is the second part of my new article series about Collectible Errors. Let’s check out the first part here: Collectible Errors?! | Microsoft Dynamics 365 – Ing. Tom Kapitan (kepty.cz) or you might be interested in my very first article about collectible errors from the last year

4 min read
AL Language

Collectible Errors?!

Collectible Errors?! It has been already almost a year since ErrorInfo datatype & CollectibleErrors were introduced (I already have an article about basic structure: ErrorInfo data type & Collectible Errors). This article was released for the first time in September 2021 before this functionality was publicly available. Since then, there have been some changes and

5 min read
AL Language

Isolated events

With Business Central 2022 wave 1, a new setting for event publishers was introduced. Until this version, any error in any event subscriber caused interruption to the current running process and stopped the whole activity. In some cases (such as log-in), this is definitely unintended. For this reason, Microsoft introduced Isolated Event Publishers. These events

2 min read
AL Language

Custom Filter Tokens

As a user of the Business Central you have some constants you can use to filter or insert values. These constants contain useful values for data manipulation such as t / today for date field – return current date q / quarter for date field filters – return range of the current quarter w /

3 min read
AL Language

1D & 2D Barcodes in Business Central 19.1

Business Central (cloud-only!) includes one-dimensional (1D) barcode fonts since Microsoft Dynamics 365 Business Central 2020 wave 2 (17.0) was released in October 2020. It is a great improvement to how developers can handle requirements from their clients to print various reports with different types of bar codes. However, one of the most missing features was

4 min read
AL Language

How to let users choose field(s) properly

When some complex functionality is developed, it is sometimes necessary to let users choose a specific field. This can be required for field permissions, mapping imported values or any similar process. Earlier, the usual way was to create a link on the Field table (for example “Field”.”No.” WHERE (TableNo=FIELD(Table ID))). As you can see, you

3 min read
AL Language

Working with Translation Files (XLIFF)

How does the translation file work? In Microsoft Dynamic 365 Business Central, displaying different languages is done using the XLIFF files extension (.xlf). The generated XLIFF files have strings that are specified in properties like Captions, Tooltips… !!!Important!!! ——————— Old multilanguage properties (SomethingML like ToolTipML, CaptionML, …) are deprecated and are not supported by the

2 min read