MSBA-359 · Lesson 3 of 12 · 25 min
Domain review: development environment
▶ Video coming soon A video version of this lesson is on the way.
"Tell me what happens between pressing F5 and seeing your page in the browser," Noor said at the start of their first review session in early November. Joss had pressed F5 hundreds of times. He got as far as "it compiles and publishes" before he realized he could not say which file decided where it published to, what happened to the schema of his tables, or why the same key did nothing when he pointed it at the production environment. "Those are exam questions," Noor said. "Not because they are hard, but because everyone uses the tools without looking at them."
This lesson reviews two skill areas together, because they describe the same ground from two heights. Design Business Central solutions (5 to 10 percent) is the architect's view: how extensions fit the product, how updates affect them, and what kinds of apps exist. Install, develop, and deploy for Business Central (10 to 15 percent) is the developer's desk: Visual Studio Code, the configuration files, debugging and deployment. Together they are worth 15 to 25 percent of the exam.
| Objective group | Bullets |
|---|---|
| Assess the Business Central architecture | Extend the core solution; plan the update lifecycle for customizations; differentiate online and on-premises features |
| Analyze Business Central apps | Base application and system applications; connect, add-on, library and dependency apps; validate an app for Microsoft Marketplace submission |
| Configure and manage a development environment | Install and configure; configuration files; extensions within a workspace; namespaces and cross-app dependencies; code analysis |
| Create, debug, and deploy an extension | Debug with Visual Studio Code; deploy; create or modify; multilanguage development; maintain; debug configuration including snapshot and attach |
Extending the core solution
Business Central online is a multitenant service, and every customer runs the same base code. Customization therefore happens through extensions: packages of AL objects that add new objects, extend existing tables, pages, reports and enums, and subscribe to events raised by Microsoft's code. An extension never edits Microsoft's objects directly. That rule is what allows Microsoft to update every tenant on a schedule without breaking customers, and it is the first filter for many exam answers: any option that says "modify the base table" or "change the standard codeunit" is wrong for an online scenario.
On-premises installations are technically different. A partner with an on-premises customer can still build a copy of the base application, and some long-lived installations did so in the past. Microsoft's guidance is the same for both: build on extensions and events, because a modified base application has to be merged by hand at every upgrade. If an exam scenario says "on-premises" and asks for the most maintainable approach, the answer is still an extension.
Planning for updates
Business Central online receives two major updates a year, in the April and October release waves, and minor updates in the months between. Administrators choose an update window and can postpone a major update within a limited period, but not indefinitely. In 2026 wave 2, released in October, the product version is 29 and the AL runtime is 18.0. A per-tenant extension compiled for an earlier version usually keeps working, because Microsoft avoids breaking changes, but it is the partner's job to check.
Planning the update lifecycle means three habits. First, watch for obsolete code: Microsoft marks objects, fields, procedures and events with ObsoleteState = Pending, an ObsoleteReason and an ObsoleteTag with the version, and later removes them; compiler warnings tell you when your code uses something pending removal. Second, test against the next major version before it reaches your customers' production environments: Microsoft makes preview versions available ahead of each major release, and a sandbox on the preview is the place to compile and run tests. Third, keep your own app's changes compatible, so that an upgrade never needs to delete customer data.
Online and on-premises
| Topic | Business Central online | Business Central on-premises |
|---|---|---|
| Target in app.json | Cloud | OnPrem allows more, such as .NET interop |
| .NET interop (DotNet variables) | Not available | Available with target OnPrem |
| Server file system | No direct access; use streams, uploads and downloads | Available to code with OnPrem target |
| Updates | Applied by Microsoft in release waves; administrators set windows | Customer or partner decides when to upgrade |
| Copilot, agents, admin center | Available | Copilot and agent features are online only |
| Telemetry | Environment and app telemetry to Application Insights | Also possible, configured on the server |
| Publishing from Visual Studio Code | Sandboxes only; production through Extension Management, the admin center or a pipeline | Development servers as configured |
The target property in app.json is the switch. An extension with target Cloud can be installed online and uses only what the cloud allows; the compiler rejects DotNet variables and other on-premises features. An extension with target OnPrem can use them, but can never be installed online. A question that describes an extension calling a .NET assembly and asks why it cannot be uploaded to an online environment is testing exactly this.
Base application, system application and app types
Microsoft's code is itself split into apps. The System Application contains platform-level modules that any business logic can use: email, Azure OpenAI and the rest of the AI module, the guided experience used for assisted setup, upgrade tags, temporary blobs and many more. The Business Foundation app holds shared business building blocks such as number series. The Base Application contains the business logic: finance, sales, purchasing, inventory and so on. The Application app wraps them, and the application property in app.json declares which version your extension builds against.
| App type (study guide term) | What it is | Example |
|---|---|---|
| Connect app | A service outside Business Central that connects through APIs and web services; little or no AL inside Business Central | A web shop platform that reads items and posts orders through API pages |
| Add-on app | An extension installed in Business Central that adds or changes functionality in AL | Quarrystone Freshness Window, or the Corbel & Finch Warranty extension |
| Library app | An app that provides shared functionality for other apps and is not used on its own | A shared logging or licence-check module used by several of a publisher's apps |
| Dependency app | An app that another app declares in its dependencies and needs installed first | A base app from the same publisher on which industry add-ons depend |
In practice the terms overlap: a library app is usually also a dependency of something. The exam tests whether you can tell, from a scenario, what kind of app is being described and what follows from it. A connect app does not go through AL technical validation because there is no AL extension to validate. An add-on with a dependency needs the dependency to be available in Marketplace or installed first. A library app used only by your own apps can be published so customers never see it as a separate offer.
Validating an app for Microsoft Marketplace
AppSource, the store where Business Central apps were listed, is now part of Microsoft Marketplace, and the study guide uses the new name. In MSBA-353, Quarrystone's Freshness Window app went through technical validation: the first submission on November 13, 2026 failed because the app name in app.json did not match the offer name in Partner Center, and version 1.0.5.0 passed on November 20. The exam expects you to know what the technical validation checklist covers.
| Area | What validation expects |
|---|---|
| App manifest | Name, publisher, version, brief, description, privacy and help links filled in; app name matches the offer |
| Identity | An object ID range assigned by Microsoft, and a registered affix used on every object and on fields and actions added to Microsoft objects |
| Code quality | No errors from the AppSourceCop analyzer; DataClassification set on fields; no breaking changes against the previous version |
| Packaging | The .app file signed with a code-signing certificate; dependencies available |
| Upgrade | Upgrade code for data changes, so an existing customer can move to the new version |
| Languages and markets | Translations for the languages of the markets selected; the app compiles against every version in its supported range |
Validation is automated. Microsoft runs the same analyzers you can run locally, compiles the app against each Business Central version and country in its declared range, and reports errors with codes. Publishers can run the same checks before submitting with a validation script from Microsoft's container tooling, which is what Joss did after the failed submission. A per-tenant extension never goes through Marketplace validation, but it is a good habit to run the PerTenantExtensionCop analyzer on it.
The development environment
A Business Central developer needs Visual Studio Code with the AL Language extension, and somewhere to publish: an online sandbox environment, or a Docker container running Business Central, usually created with Microsoft's container tooling. The AL: Go! command creates a new project with an app.json, a launch.json and a sample object. The AL: Download Symbols command fetches the symbol files of the apps your extension depends on into the .alpackages folder, so the compiler and IntelliSense know about the base application.
Online sandboxes and containers each have a place. A sandbox is a copy of the real service, closest to production, and needs no local setup; extensions published to it from Visual Studio Code are removed when the sandbox is updated or relocated. A container gives full control, runs tests quickly and can be thrown away; it is what AL-Go for GitHub uses in its build pipelines. Microsoft has announced that support for its BcContainerHelper container tooling inside AL-Go ends on October 1, 2027, so teams are moving their pipelines to the newer build approach well before then. Quarrystone uses both: containers for daily development and pipelines, a sandbox called UPDATE-TEST for reviews with Corbel & Finch.
Configuration files
Two JSON files control most of what happens. app.json is the extension's manifest. launch.json tells Visual Studio Code where to publish and how to debug. A third file, the workspace or folder settings, controls the AL Language extension itself, including code analysis.
{
"id": "3d6a8f10-2b7c-4e55-9a1d-6c0e4f7b2a90",
"name": "Corbel & Finch Warranty",
"publisher": "Quarrystone Business Systems",
"version": "1.0.0.0",
"idRanges": [ { "from": 50100, "to": 50149 } ],
"dependencies": [],
"platform": "29.0.0.0",
"application": "29.0.0.0",
"runtime": "18.0",
"target": "Cloud",
"features": [ "TranslationFile", "NoImplicitWith" ],
"resourceExposurePolicy": {
"allowDebugging": true,
"allowDownloadingSource": false,
"includeSourceInSymbolFile": false
}
}The properties most often tested are idRanges (the object IDs the app may use; per-tenant extensions use 50000 to 99999), dependencies (other apps this one needs, each with an ID, name, publisher and minimum version), application and platform (the minimum versions of Microsoft's apps and platform), runtime (the AL language version, which limits which features the compiler allows), target, features (such as TranslationFile, which generates translation files) and resourceExposurePolicy, which decides whether others can debug the app, download its source or see source in its symbols. An app with allowDebugging set to false cannot be stepped through by anyone who installs it.
{
"version": "0.2.0",
"configurations": [
{
"name": "UPDATE-TEST sandbox",
"type": "al",
"request": "launch",
"environmentType": "Sandbox",
"environmentName": "UPDATE-TEST",
"startupObjectType": "Page",
"startupObjectId": 50101,
"schemaUpdateMode": "Synchronize",
"breakOnError": "All",
"breakOnRecordWrite": "None"
},
{
"name": "Snapshot: web shop sessions",
"type": "al",
"request": "snapshotInitialize",
"environmentType": "Sandbox",
"environmentName": "UPDATE-TEST",
"breakOnNext": "WebServiceClient"
}
]
}A launch.json can hold several configurations; Visual Studio Code asks which to use, or uses the first. The request value decides the kind of session: launch publishes and starts a debugging session, attach connects the debugger to a session that will start, and snapshotInitialize starts recording a snapshot. schemaUpdateMode controls what happens to table schemas on publishing: Synchronize keeps data and fails if a change would lose it, Recreate drops and recreates the extension's tables (losing their data), and ForceSync forces the change through, which can also lose data and is for development only.
Workspaces, namespaces and dependencies
An AL workspace can contain several projects. Quarrystone's CF Roastery repository has a multi-root workspace with the main app and its test app side by side. When one project depends on another in the same workspace, the AL Language extension resolves the reference from source rather than from a symbol file, and publishing can include the dependent projects; the dependencyPublishingOption setting in launch.json controls whether dependencies are published too.
Namespaces organize objects. A file starts with a namespace declaration, such as Quarrystone.CorbelFinch.Warranty, and using statements for the namespaces it refers to, such as Microsoft.Sales.Document. Namespaces make object names unique across apps and make the base application easier to navigate. Cross-app references still need a dependency in app.json; a namespace is not a dependency. Within an app, the Access property limits who can use an object or procedure: Internal objects can be used only inside the app, or by apps named in internalsVisibleTo.
Code analysis
The AL compiler includes four code analyzers, switched on with the al.enableCodeAnalysis setting and chosen with al.codeAnalyzers. CodeCop checks general AL guidelines. PerTenantExtensionCop checks rules for per-tenant extensions, such as object IDs and affixes. AppSourceCop checks the stricter rules for Marketplace apps, including breaking changes against a previous version, using an AppSourceCop.json file that names the mandatory affixes and the baseline. UICop checks rules for the web client, such as page customizations. A ruleset file, referenced by al.ruleSetPath, changes the severity of individual rules, for example raising a warning to an error so the build fails.
Debugging an extension
The AL debugger in Visual Studio Code supports breakpoints, stepping, watches, the call stack and variables, including record contents. Pressing F5 publishes and starts debugging using the launch configuration; Ctrl+F5 publishes without debugging. Two launch.json settings break automatically: breakOnError (All, None or ExcludeTry, which ignores errors inside try methods) and breakOnRecordWrite (All, None or ExcludeTemporary), which stops whenever a record is inserted, modified or deleted.
Three debugging modes cover different situations. Launch debugging is for problems you can reproduce yourself. Attach debugging connects to the next session of a chosen kind, set with breakOnNext (WebClient, WebServiceClient, Background or Agent), optionally for a specific user; it is how you debug a web service call from the web shop or a job queue entry in a sandbox. Live attach is not supported in production. Snapshot debugging records a session's execution, including in production, at snappoints you set; you start it with F7, reproduce the problem, finish it with Shift+F7, and then replay the recording offline in Visual Studio Code. Snapshot debugging needs the D365 Snapshot Debug permission set, and because a snapshot can contain personal data it should be handled with care. Joss found the duplicate warranty registrations in November with a snapshot of a web shop session; he still says it is the moment he understood why the mode exists.
Deploying and maintaining extensions
Visual Studio Code publishes to sandboxes and containers. It does not publish to production. A per-tenant extension reaches production in one of three ways: uploaded on the Extension Management page, where the administrator chooses whether to deploy it to the current version or with the next minor or major update; through the Business Central admin center and its APIs; or by a pipeline such as AL-Go for GitHub. Marketplace apps reach customers through Marketplace.
Every extension goes through the same lifecycle: it is published (the package is added), synchronized (its schema is applied to the database), and installed (made available to a tenant, running install code). A new version is published and then upgraded, which runs upgrade code. Removing an extension means uninstalling it, optionally deleting its data, and unpublishing it. Maintaining an extension means versioning it, keeping upgrade code for every data change, marking anything you plan to remove as obsolete first, and never deleting or renaming fields that hold customer data in a single step.
Multilanguage development
Business Central is used in many languages, and AL is designed so text is translated, not rewritten. Captions, tooltips and labels are translatable; text in code should be in labels, not literals. A label can carry a Comment for translators, Locked = true for text that must never be translated (such as a URL or JSON key), and MaxLength. With the TranslationFile feature in app.json, the compiler generates an XLIFF file (ending .g.xlf) in the Translations folder with every translatable string. Translators produce one XLIFF file per language, such as French (Canada), and the app shows those strings to users whose language matches. If a wholesale customer of Corbel & Finch ever asked for warranty certificates in French, the warranty extension would need only a French (Canada) XLIFF file, not a single change to its code; that is the point of keeping every user-facing string in captions and labels.
codeunit 50100 "CNF Warranty Mgt."
{
var
ExpiredErr: Label 'Warranty %1 expired on %2.', Comment = '%1 = registration number, %2 = end date';
ApiPathTxt: Label '/api/quarrystone/warranty/v1.0', Locked = true;
}Worked problem
The deployment that did nothing
A developer changes launch.json to point at the PROD environment, presses F5, and nothing reaches production. Another developer, testing in a container, renames a field and publishes with schemaUpdateMode set to ForceSync. What went wrong in each case, and what should they do?
Show solution
- Publishing from Visual Studio Code to production is not supported; the first developer should build the .app and upload it through Extension Management, the admin center or the pipeline.
- ForceSync pushed a destructive schema change through; in a container that only loses test data, but the same change in a real environment would lose customer data.
- For a real field change, keep the old field, mark it ObsoleteState = Pending, add the new field and copy the data in an upgrade codeunit.
Answer: Production deployments go through Extension Management, the admin center or a pipeline; schema changes that lose data are handled with obsoletion and upgrade code, never with ForceSync outside development.
Common mistakes
MistakeChoosing "modify the base table" for an online scenario.
InsteadUse table extensions, page extensions and events.
MistakeThinking a namespace replaces a dependency.
InsteadCross-app references still need the dependency in app.json.
MistakeUsing attach debugging in production.
InsteadUse snapshot debugging in production; attach works in sandboxes.
MistakeTreating Recreate as a safe schema mode.
InsteadRecreate drops the extension's tables and their data.
MistakeCalling the store AppSource in a new design.
InsteadBusiness Central apps are listed in Microsoft Marketplace.
Summary and key terms
- Extensions customize Business Central without changing Microsoft's objects; this keeps updates safe.
- Major updates arrive twice a year, minor ones monthly; obsolete code is marked Pending before removal; test on preview versions.
- Target Cloud forbids on-premises features such as .NET interop.
- System Application, Business Foundation and Base Application are separate Microsoft apps; app types are connect, add-on, library and dependency.
- app.json describes the app; launch.json describes publishing and debugging; analyzers are CodeCop, PerTenantExtensionCop, AppSourceCop and UICop.
- Launch, attach and snapshot debugging serve different cases; production is reached through Extension Management, the admin center or a pipeline.
- Per-tenant extension
- An extension built for one customer and uploaded to its environments, using IDs 50000 to 99999.
- Runtime
- The AL language version an app targets; 2026 release wave 2 corresponds to runtime 18.0.
- schemaUpdateMode
- A launch.json setting for how table schema changes are applied on publishing: Synchronize, Recreate or ForceSync.
- Snapshot debugging
- Recording a session's execution at snappoints, including in production, for offline replay.
- AppSourceCop
- The code analyzer that enforces Marketplace rules, including breaking-change checks.
- XLIFF file
- The XML format used for translations; the compiler generates a .g.xlf file with the TranslationFile feature.
- resourceExposurePolicy
- An app.json setting controlling debugging, source download and source in symbols.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which request value starts recording a snapshot?
Show answer
snapshotInitialize.
Which analyzer checks breaking changes against a previous version?
Show answer
AppSourceCop, using the baseline set in AppSourceCop.json.
Why can an app with a DotNet variable not be installed online?
Show answer
It needs target OnPrem; online apps must target Cloud.
Name the three ways a per-tenant extension reaches production.
Show answer
Extension Management upload, the admin center, or a pipeline such as AL-Go.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.