A Build and Release Pipeline for One Business Central Developer With Clients on Different Versions
The minimum AL-Go for GitHub pipeline that pays back: one repository per app, builds against each client version, automated posting tests and deployment to per-tenant environments through the API instead of a laptop.
The minimum pipeline that pays back for one Business Central developer has four parts. One GitHub repository per app, created from the AL-Go for GitHub per-tenant extension template, so every change is built the same way. Builds against each client's version: compile against the lowest version you support and run the Test Next Minor and Test Next Major workflows, so an update never surprises you. Automated tests for the posting routines your app touches, written with Microsoft's test libraries. Deployment to each client's environments through Business Central's APIs with a Microsoft Entra app, not from a laptop. Clients on older versions get a release branch with their own build settings and fixes only.
What is the minimum build and release pipeline that pays back for one AL developer?
The one that removes the three things that go wrong most often when one developer serves several clients: an extension built on the developer's machine with whatever symbols happened to be downloaded, a posting change that nobody tested after the last Microsoft update, and an .app file uploaded by hand to the wrong environment or in the wrong version. AL-Go for GitHub, Microsoft's open source set of templates and GitHub Actions workflows for Business Central, covers all three without you writing pipeline code. It runs on BcContainerHelper underneath and is documented on its GitHub repository.
Anything beyond that minimum, such as code coverage gates, performance tests or a full test matrix per client, is worth adding later when a client or an update makes it necessary. Start with build, posting tests, forward-looking tests and deployment, and stop there until it runs without attention.
Why one repository per app rather than one repository per client?
Because the app is the unit you build, version and deploy. A per-tenant extension that serves one client lives in its own repository; an app you reuse across several clients also lives in one repository and is deployed to several environments from it. That keeps one version history per app, one set of tests, and one place to see which version went where.
Shared code that several apps need belongs in its own app, used as a dependency, in its own repository. Remember that a dependency is a separate per-tenant extension in every tenant it runs in, so it is deployed and versioned like any other app. Keep each repository's object IDs inside the per-tenant extension range and agree with each client which ranges are yours, so two suppliers never collide.
How do you build against each client version with AL-Go?
Build against the lowest version you support, test against the versions that are coming. In app.json, set the application and platform versions to the oldest Business Central version any client of that app runs, and set the AL-Go build artifact to match, so the compiler stops you using anything newer. Code compiled against an older version normally runs on newer ones unless something you use is removed, and the CodeCop and obsolete warnings tell you early what is on its way out.
Then let AL-Go look ahead. The Test Next Minor and Test Next Major workflows compile and test the app against the next minor and next major versions, so you see breaking changes weeks before a client's environment is updated. Business Central online receives two major updates a year plus minor updates, and the update rules mean online clients sit within a narrow range of versions; what that means for scheduling is on major updates and incompatible apps.
| Client situation | Build setting | What you run |
|---|---|---|
| Online, current version | Lowest supported version in app.json and the artifact | CI/CD on every push, Test Next Minor and Test Next Major on a schedule |
| Online, one version behind inside its update period | Same: it is your lowest supported version | Same pipeline; deploy before its scheduled update and test again after |
| On-premises on an older AL version | A release branch with conditional settings for that version | Build and tests on the branch; fixes only |
| On-premises on C/AL (Business Central 14 or earlier) | Outside an AL pipeline | A plan to upgrade or move to the cloud |
Which posting routines should have automated tests first?
The ones where your code changes what gets posted. If your extension subscribes to events in sales or purchase posting, adds fields that flow to posted documents or ledger entries, or changes dimensions, prices or VAT on the way to posting, those are the routines a Microsoft update or another vendor's extension is most likely to disturb. Write those tests first; tests for pages and simple validations can wait.
Use a separate test app with test codeunits and Microsoft's test libraries, such as Library Assert and the sales, purchase and inventory libraries, to create a document, post it and check the result. AL-Go detects the test app and installs the test toolkit in the build container. When a posting failure does reach a client after an update, the isolation method and the event subscriber evidence are on extension conflicts after an update; a test that reproduces it then joins the suite.
- Post a sales invoice and check that your field reaches the posted invoice and the ledger entries.
- Post a purchase document that triggers your logic, and one that should not, and check both.
- Check the error path: a document your rules should block fails with your message and posts nothing.
- Cover the dimensions and VAT setup your extension relies on, because client data differs.
How do you deploy to per-tenant environments without a laptop?
Through Business Central's APIs from the pipeline, with credentials the client controls. In each client tenant, register a Microsoft Entra application in Business Central with the permissions Microsoft documents for extension management, consented by the client's administrator. In GitHub, create one environment per client sandbox and production, store the authentication context for that tenant as the environment's AuthContext secret, and point the AL-Go deployment settings at it. The Publish To Environment workflow then uploads the extension through Business Central's API; check the current AL-Go documentation for the exact setting names, which have changed between releases.
Require an approval on production environments, deploy to the client's sandbox first, and schedule production deployments inside the client's agreed window. The client can revoke the app at any time, which is a better position for both of you than a shared administrator password, and every deployment leaves a record of which version went where.
What should you do about clients on older Business Central versions?
Decide per client and write it down. Online clients cannot stay on an old version for long, so for them the lowest supported version simply moves forward twice a year and old builds are retired. On-premises clients are different: they can stay on an older version for years, and your pipeline has to keep serving them without holding every other client back.
- Create a release branch per older version you still support, with AL-Go conditional settings that point that branch at its own build artifact.
- Accept only fixes on a release branch; new features go to the main branch, which builds against current versions.
- Deploy on-premises releases the way the client's infrastructure allows, for example by handing the built and tested app file to their administrator with an install script, and record the version delivered.
- Set an end date for each release branch with the client, tied to their upgrade plan, so you are not maintaining several versions indefinitely.
- Clients still on C/AL versions, Business Central 14 or earlier, are outside an AL pipeline; the route forward is on Business Central 14 without source code.
How do you keep track of which version each client runs?
Let the pipeline record it rather than your memory. Create every release with the Create Release workflow, so it has a version number, a tag and release notes generated from the changes. Deploy only released versions to production. Keep a short table in each repository of the client environments, the version deployed and the date, updated as part of the deployment, and compare it with the installed extensions in the client's Business Central now and then.
Version numbers are also how Business Central decides between install and upgrade, so increase them on every release and write upgrade codeunits for data changes. Moving an app to Microsoft Marketplace (AppSource) later adds its own validation rules, covered on the AppSource validation checklist.
What are the steps to set up an AL-Go pipeline for several clients?
Repository, version, tests, look-ahead, credentials, environments, releases, branches. Set it up on one app first, run it through a full release to one client, then repeat for the rest.
- Create one repository per app from the AL-Go template: Use the AL-Go for GitHub per-tenant extension template, move the app and its test app into it, and keep object IDs inside the per-tenant range.
- Set the lowest supported version: Set the application and platform versions in app.json and the AL-Go build artifact to the lowest Business Central version any client of this app runs.
- Add tests for posting routines: Write a test app that uses Microsoft test libraries to create, post and check the documents your code touches, starting with sales and purchase posting.
- Turn on the forward-looking test workflows: Schedule the Test Next Minor and Test Next Major workflows so the app is compiled and tested against the coming versions before clients are updated.
- Register a deployment app per client tenant: In each client tenant, register a Microsoft Entra application in Business Central with the permissions Microsoft documents for extension management, with the client consenting.
- Define one GitHub environment per client environment: Create a GitHub environment for each client sandbox and production, store its AuthContext secret there and require approval for production.
- Release and deploy through the workflows: Create releases with the Create Release workflow and deploy with Publish To Environment, sandbox first, then production inside the client update window.
- Branch for clients on older versions: Create a release branch for each older version still supported, with conditional settings for its build artifact, and accept fixes only on that branch.
When does a solo developer need a second pair of hands or eyes?
When the pipeline shows more breakages than one person can fix before the next update, when a client asks for an independent review of the code they depend on, or when holidays and illness leave clients without cover. A pipeline makes that easier, because someone else can build, test and release the app the same way you do. Partners hiring AL capacity can use the questions on how to vet a Business Central AL developer.
What does Solzet deliver for Business Central AL pipelines?
Solzet sets up AL-Go pipelines for per-tenant extensions and Marketplace apps: repository structure, version and artifact settings, test apps with posting tests, the forward-looking test workflows, deployment credentials and GitHub environments per client tenant, release branches for older versions, and the release routine. We also take on AL development, update testing and fixes in the same repositories, and Microsoft partners can use our AL developers on a white-label basis inside their own pipelines. Our own senior consultants and full-stack developers do the work. The service is Business Central AL development.
For clients whose CRM needs are better met outside Microsoft licensing, a custom CRM connects to Business Central through its APIs. We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
Is AL-Go for GitHub suitable for a single Business Central developer?
Yes. AL-Go provides the build, test, release and deployment workflows as templates, so one developer gets a consistent pipeline without writing pipeline code. Start with one repository per app, posting tests and deployment, and add more only when needed.
How do I build one per-tenant extension for clients on different Business Central versions?
Set app.json and the AL-Go build artifact to the lowest version any client runs, and schedule the Test Next Minor and Test Next Major workflows to catch breaking changes. Clients on older on-premises versions get a release branch with its own build settings and fixes only.
How does AL-Go deploy to a client Business Central tenant?
Through Business Central APIs using a Microsoft Entra application registered in the client tenant, with its authentication context stored as a secret on a GitHub environment. The Publish To Environment workflow uploads the extension; production can require approval.
Which automated tests should a Business Central extension have first?
Tests for the posting routines the extension touches: post sales and purchase documents with Microsoft test libraries and check that your fields, dimensions and rules reach the posted documents and ledger entries, plus tests that blocked documents post nothing.
Should I use one repository per client or one per app?
One per app. The app is what you build, version and deploy; an app reused by several clients is deployed to several environments from the same repository. Shared code goes into its own dependency app with its own repository.
Can AL-Go deploy to on-premises Business Central?
Its deployment workflows target Business Central online. For on-premises clients, build and test on a release branch in AL-Go and deliver the tested app file to the client administrator with an install script, recording the version delivered.
Does Solzet set up AL-Go pipelines?
Yes. Solzet sets up AL-Go pipelines with posting tests, forward-looking test workflows, per-tenant deployment and release branches, and provides AL development and white-label AL capacity for Microsoft partners in the same repositories.
Where should you go next?
Business Central AL development
AL extensions, Marketplace apps, integrations and white-label AL capacity.
Extension conflicts after an update
Isolating which extension breaks posting, with evidence.
Major updates and incompatible apps
Update periods, sandbox testing and fallback plans.
AppSource validation checklist
What a Marketplace app needs before submission.
How to vet a Business Central AL developer
Questions that separate AL engineering from scripting.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.