Question 80
A Business Central developer must validate a correction for this condition: A custom API omits mandatory business validation because a field is not on any visible page. Which acceptance result best demonstrates that the issue was resolved?
Explanation
Correct Answer
The acceptance result follows from the chosen remedy. Enforce validation in table or service logic for all API-driven writes. is justified because public API calls bypass UI interactions but still require invariant business rules. Therefore verify: An invalid API payload is rejected with no inconsistent stored record.
Incorrect Answers
The option would apply to “An external app needs to trigger a Business Central action against a specific posted document but the integration exposes only generic write access”. Therefore verify: The authorized request executes the intended workflow and prohibited states are rejected. This question instead requires “An invalid API payload is rejected with no inconsistent stored record”.
The related but distinct situation is “A consumer needs to retrieve joined read-only inventory and supplier data without making multiple REST calls”. Therefore verify: A consumer retrieves the intended joined fields through the configured API version. For the stated problem, “An invalid API payload is rejected with no inconsistent stored record” addresses the central condition.
This option serves the scenario “A web service returns correct customer fields but the developer has no safeguards against one user retrieving another tenant's data”. Therefore verify: A cross-tenant access test returns no protected customer records. The present scenario is distinguished by “An invalid API payload is rejected with no inconsistent stored record”.