Creating new modules
Creating new modules covers how to create, change, and contribute System Application modules in the BCApps repository. It answers questions on environment setup, module architecture, facade and implementation codeunits, .NET wrapper modules, tests, and the pull request workflow.
Path: Development > System and application reference documentation > Creating new modules · tier official · system development · narrative reviewed (checked by Opus)
Overview
This section is for developers who want to add or modify a module in the Business Central System Application through the BCApps repository. It walks through the full path: requirements, local environment, module design, implementation, tests, and contribution.
Start with “Get started with modules” for requirements (AL development, Git) and an entry point to creating or modifying modules. Then follow “Set up an environment for developing a module”, which uses GitHub, Docker, BcContainerHelper, and Visual Studio Code. “Module Architecture in the System Application” gives the design rules for API design, packaging, dependencies, object accessibility, and testing.
For the actual work, use “Create a new module in the System Application” for a new module (app.json, facade and implementation codeunits, tests, pull request) or “Change a System Application module” for existing ones. “Create a .NET Wrapper Module” covers exposing .NET functionality in AL, with the Regex module as the example.
Key points
- Modules are developed and contributed in the BCApps repository using Git and pull requests.
- Development environment uses GitHub, Docker, BcContainerHelper, and Visual Studio Code.
- A new module needs a module structure with an app.json file, a public facade codeunit, and an implementation codeunit.
- Tests are added alongside the module; the new-module guide follows a test-driven approach.
- Architecture guidance covers the Internal access modifier, Access property for table fields, SingleInstance, Extensible, and internalsVisibleTo configuration.
- Changing an existing module means updating the implementation, exposing functionality through the public API, and adding tests.
- .NET wrapper modules use codeunits and temporary tables, with facade, argument-table, and constructor handling patterns.
- The new-module guide references version 17.0.0.0.
Learn pages
- Change a System Application Module in Business Central: Learn how to update an existing Business Central System Application module, preserve its public API, add tests, and contribute your changes to BCApps.
- In the observatory: Codeunit 4110 “Base64 Convert”, Codeunit 4111 “Base64 Convert Impl.”
- Create a .NET Wrapper Module: This article provides a description of how to contribute a .NET wrapper module.
- In the observatory: Codeunit 3960 “Regex”, Codeunit 3961 “Regex Impl.”, Table 3965 “Matches”, Table 3966 “Regex Options”
- Create a new module in the System Application: Learn how to create a new module in the System Application.
- In the observatory: Codeunit 1483 “XmlWriter”
- Get started with modules: Provides an overview of what you need to work with modules in the System Application.
- Module Architecture in the System Application: Design System Application modules with clear public APIs, internal implementations, separate tests, and XML documentation that fit BCApps conventions.
- Set up an environment for developing a module: Learn how to set up the tools you need to build a module in the System Application.
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 6 Learn pages
- learnChange a System Application Module in Business Central2026-10-26
- learnCreate a .NET Wrapper Module2025-06-16
- learnCreate a new module in the System Application2026-10-29
- learnGet started with modules2026-10-29
- learnModule Architecture in the System Application2026-10-29
- learnSet up an environment for developing a module2025-11-10