Posts

C/AL to AL: The Complete Migration Cheat Sheet (2026 Edition)

If you learned C/AL in the Dynamics NAV era, the good news is that most of your knowledge still applies. AL , the language of Microsoft Dynamics 365 Business Central, kept the core concepts — tables, pages, codeunits, triggers but modernized the syntax and moved everything to an extension-based model. C/AL and the classic C/SIDE environment were retired back in Business Central version 15 (2019), and as of 2026 we are already 13 major versions into the fully AL-based world. This cheat sheet maps the most common C/AL patterns to their AL equivalents so you can migrate old code (or old skills) quickly. 1. The big picture: what changed Concept C/AL (NAV) AL (Business Central) Development tool C/SIDE (Object Designer) Visual Studio Code + AL Language extension Customization model Modify base objects directly Extensions only never modify the base app Object files Stored in the database Plain-text .al files in a project, version-controlled with Git Deployment Import .fob / .txt ...

FOR Loop

FOR Loop or FOR Statement In Microsoft Dynamics NAV Definition FOR loop is a repetitive statement or loop, is used when we need to execute the code a predetermined number of times.  FOR Loop in Microsoft Dynamics NAV, C/AL having mainly 2 types FOR .. TO Loop FOR .. DOWNTO Loop FOR .. TO Loop In the case of FOR .. TO Loop the value checking is incresed format and when the value reach the condition wrong then exit loop. Syntax of FOR .. TO Loop: -------------------------------------------------------------- FOR Control Variable :=   Start Value TO End Value DO Statement -------------------------------------------------------------- Here Control Variable must be a variable type of Boolean, Date, time or any numeric type. The Start value and End Value must be either expressions of same data type. For Example: =========================================== FOR i :=1 TO 5 DO     Result := Result + 5; =========================================== In this programming codes works in a manner that...