topic hubAL Developmentofficial - Microsoftreviewed - checked by Opus

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

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 6 Learn pages