Summary

Completed

A dependable Business Central integration surface starts with an explicit contract. API objects expose only the entities and projections that callers need, actions represent business operations, read intent identifies safe analytical workloads, and secret handling limits credential exposure.

Review the API implementation choices

Use an API page when callers need entity create, read, update, or delete operations. Define a stable route with APIPublisher, APIGroup, and APIVersion, use SystemId as the OData key, and expose only contract fields. Use an API query for a read-only projection, join, aggregation, or export feed.

A bound action is a [ServiceEnabled] page procedure that operates on the entity in the request URL. An unbound action is a public procedure on a codeunit published as an OData V4 web service. Both require deliberate parameters, results, validation, and permissions.

DataAccessIntent = ReadOnly declares that a workload doesn't require writes. It permits a read-only connection and replica routing when supported, but it doesn't guarantee that a particular request reaches a replica. Consider replication delay and environment capability before using the setting.

Protect the integration boundary

Use permission sets to grant only the table-data and object access required by API calls and setup operations. External callers authenticate to Business Central online with OAuth 2.0.

For credentials that an extension uses to call another service, select an isolated-storage scope that matches ownership. Retrieve and pass the value as SecretText, avoid clear-text diagnostics, support replacement, and delete the value when the integration is disconnected.

These decisions keep the API surface stable, the read workload intentional, and sensitive values outside ordinary source and storage paths.