Microsoft Dynamics 365: Finance and Operations Apps Developer — Question 31
A company is implementing Dynamics 365 Finance.
You implement a risk rating for vendors. The risk rating is on the Vendor form.
The rating is determined by a vendor's on-time delivery performance as well as their credit rating.
The risk rating consists of the following values:
1 = Good
2 = Medium
3 = Risky
The company plans to implement purchase requisitions. The company wants to prevent purchase orders from being confirmed when a vendor's risk rating is set to Risky.
You need to implement the functionality.
What should you do?
Answer options
- A. Create a method for the OnModified event of the vendor account.
- B. Create a new business event.
- C. Create a method for the OnInitializing event of the form.
- D. Create a Chain of Command (CoC) class extension.
Correct answer: D
Explanation
The correct answer is D because a Chain of Command (CoC) class extension allows you to modify the behavior of existing methods in Dynamics 365 Finance, enabling you to implement the necessary checks to prevent purchase orders from being confirmed for vendors rated as Risky. Options A and C relate to event handling but do not provide the necessary control over the purchase order confirmation process, while option B does not address the specific requirement to enforce risk rating checks.