Question 390
A Dynamics 365 Business Central development project faces this issue: A team places reusable setup logic in a customer ledger posting customization simply because it already has a codeunit there. Which action best addresses the requirement?
Explanation
Correct Answer
The stated constraint is addressed by keep infrastructure and shared utility logic in appropriate reusable system-facing extension modules. The controlling design consideration is that responsibility boundaries help avoid unnecessary dependencies on transaction-specific business code. Verify with: A second extension can consume the shared utility without referencing customer-ledger posting internals.
Incorrect Answers
This option serves the scenario “A new engineer cannot tell whether a capability comes from the platform, Microsoft Base Application, or a partner app”. Correct extension points depend on knowing who owns the existing object and API contract. The present scenario is distinguished by “Keep infrastructure and shared utility logic in appropriate reusable system-facing extension modules”.
That change would address a different situation: A Business Central implementation uses one extension to hold optional industry features that require unrelated permissions. Here the key constraint is that responsibility boundaries help avoid unnecessary dependencies on transaction-specific business code. The intended verification is A second extension can consume the shared utility without referencing customer-ledger posting internals.
The related but distinct situation is “A publisher prepares a new version containing breaking public interface changes with no notice to dependent apps”. Downstream extension consumers rely on stable published contracts and compatible versions. For the stated problem, “Keep infrastructure and shared utility logic in appropriate reusable system-facing extension modules” addresses the central condition.