Select an app type for an extension strategy
Once you understand where an app sits in the application architecture, you need to decide which app pattern fits the scenario you're solving. Business Central supports four common app patterns: connect, add-on, library, and dependency.
Compare connect and add-on apps
A connect app establishes a point-to-point connection between Business Central and an external service. Data and business logic for a connect app typically live outside Business Central, and the app communicates through Business Central APIs. The Microsoft Marketplace listing type for a connect app is Contact Me because external setup is required.
Choose a connect app when:
- The integration doesn't require AL development inside Business Central.
- You want to reuse an existing API integration with another cloud service.
- The data and main user experience remain in the external service.
An add-on app extends the experience and functionality of Business Central directly. You build add-on apps with AL in Visual Studio Code, and they can add fields, pages, business logic, or entirely new capabilities. Choose an add-on app when:
- The scenario requires changes to the Business Central user interface.
- You need to add business logic that runs inside the Business Central runtime.
- The app can't integrate through the standard APIs alone or requires substantial AL coding.
The boundary between these patterns depends on the implementation, not only the business scenario. Two solutions can both exchange shipment status with an external service. A service that reads and writes Business Central data through standard APIs, while users work in the service's portal, fits the connect pattern. A solution that adds a shipment-status page, validation logic, and background processing inside Business Central fits the add-on pattern.
An add-on app can also connect to an external service. Calling an external endpoint doesn't automatically make an app a connect app. Ask where the functionality runs, where users complete the task, and whether the solution requires substantial AL code.
Use library and dependency apps to manage shared code
A library app contains common code, such as shared utilities or licensing logic, that other apps depend on. A library app doesn't appear as its own listing on Microsoft Marketplace. Instead, the platform installs it automatically when a customer installs an app that depends on it, based on the dependencies declared in that app's manifest.
A dependency app is similar to a library app, but it has its own Marketplace listing. For example, an add-on app might depend on a separately listed app that provides shared functionality. Both library and dependency apps are resolved the same way: the platform walks the dependency chain in the manifest and installs each dependency before it installs the app that depends on it.
Use a library or dependency app when you want multiple apps to share the same code without duplicating it, while still letting each app update that shared code independently, based on the declared dependency version.
Choose between these two patterns by evaluating whether the shared app has independent customer value:
- Use a library app when customers don't select or use the shared app on its own. It supports other apps and is installed through their dependency chains.
- Use a dependency app when the app provides a standalone capability and therefore has its own Marketplace offer, while other apps can also depend on it.
Avoid creating a shared app only to divide a codebase into smaller projects. A separate package introduces versioning, installation, and compatibility obligations. The boundary is useful when several apps need the same stable capability or when the shared component has an independent release lifecycle.
For each shared app, define a narrow public API and decide who owns compatibility. If an app changes a public procedure or data contract, every dependent app can be affected. Internal objects should remain internal so that consumers don't create dependencies the publisher can't maintain.
Match the app type to the extension scenario
When you evaluate an app, ask these questions:
- Does the app own the data it manages, or does the data live in an external service? If the data lives externally, you're likely looking at a connect app.
- Does the app change the Business Central user interface or add business logic? If so, it's an add-on app, whether or not it also has dependencies.
- Does the app exist only to be installed as a dependency of other apps? If so, evaluate whether it should be a library app or a dependency app, based on whether it needs its own Marketplace listing.
- Does the proposed boundary isolate reusable code, or does it only add packaging and versioning overhead?
Also identify the primary app and any supporting relationships. A solution can be an add-on app that depends on a library app. In that case, add-on describes the customer-facing app, and library describes the role of its shared dependency. Don't force the complete solution into one label when the packages have different roles.
Evaluate coupling and distribution
App-type selection affects both technical design and distribution. Document these factors before you recommend a pattern:
- Experience location: Identify whether users work mainly in Business Central or in an external service.
- Execution location: Identify where business rules and data processing run.
- AL requirement: Determine whether standard APIs satisfy the integration or whether the solution requires AL objects.
- Reuse: Identify whether multiple apps consume the same code.
- Independent value: Determine whether a shared app has a reason for its own Marketplace offer.
- Lifecycle ownership: Identify who versions, tests, and supports each package and its public API.
Suppose a publisher has three add-on apps that use the same entitlement checks. Copying those checks into each app creates three implementations that can drift. A library app centralizes the capability, but it also means that all three apps depend on the library's public contract. The publisher should use the library only when that contract is stable and the shared release process is manageable.
Now suppose the shared app also provides a complete tax-calculation experience that customers can buy and use independently. A separate Marketplace offer has customer value, so it fits the dependency-app pattern. Other add-on apps can declare it as a dependency.
Finally, consider an external scheduling service. If the service uses standard Business Central APIs and users configure schedules in the service, a connect app fits. If the solution adds scheduling pages, tables, and processing logic inside Business Central, an add-on app fits. If it does both, the required AL extension makes the Marketplace package an add-on even though it connects to an external service.
Your recommendation should state the app type, the evidence that supports it, the dependency relationships, and the distribution consequence. This record gives developers and publishers a shared basis for the package design.