Question 180
An AL extension team encounters the following situation: A partner wants to extend approval handling without changing a standard codeunit. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
This is the controlling principle in the reported case. An event-based extension point permits independent logic without replacing the publisher's code. The intended remedy is use a suitable integration event publisher/subscriber design rather than copying the whole routine.
Incorrect Answers
The option would apply to “A developer subscribes to an event but the event never fires because the subscriber names the wrong publisher signature”. The underlying mechanism is that event subscriptions require matching published signatures and available event surfaces. This question instead requires “An event-based extension point permits independent logic without replacing the publisher's code”.
The related but distinct situation is “A page action contains hundreds of lines of financial logic and is copied into a second page action”. The underlying mechanism is that duplicating financial rules across UI actions causes drift and inconsistent corrections. For the stated problem, “An event-based extension point permits independent logic without replacing the publisher's code” addresses the central condition.
This alternative addresses the separate case “A newly installed app needs an initial setup row that should exist only once”. The underlying mechanism is that installation lifecycle behavior differs from repeatedly running an ordinary page action. The deciding requirement here is “An event-based extension point permits independent logic without replacing the publisher's code”.