Question 490
An AL extension team encounters the following situation: An AL developer reads a FlowField into a calculation and gets a zero-like value because it was not calculated. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
The underlying mechanism is that flowFields are computed from related data and require evaluation in AL contexts that do not calculate them automatically. Therefore the developer should use the proper calculation mechanism such as CalcFields or AutoCalcFields before relying on the value. Confirm with: The calculated balance matches the reference ledger aggregate on the test record.
Incorrect Answers
This option serves the scenario “A table field for a shipping code accepts arbitrary values even though only entries in a lookup table are valid”. Data integrity belongs to the data model, not only to a single UI control. The present scenario is distinguished by “FlowFields are computed from related data and require evaluation in AL contexts that do not calculate them automatically”.
This alternative addresses the separate case “An app must show additional approval details only when a document is in the relevant lifecycle state”. The underlying mechanism is that conditional UI is helpful guidance, but it is not a substitute for business-rule enforcement. The deciding requirement here is “FlowFields are computed from related data and require evaluation in AL contexts that do not calculate them automatically”.
The option would apply to “A pageextension overrides a standard action label and unintentionally hides the original business operation from users”. Page-extension navigation should not create ambiguous or duplicate commands. This question instead requires “FlowFields are computed from related data and require evaluation in AL contexts that do not calculate them automatically”.