Q:
The development team is working on a Microsoft Dynamics 365 finance and operations apps implementation. They need to implement a feature that automatically adjusts inventory levels based on purchase orders by creating a journal.
You need to create a class that encapsulates the inventory adjustment logic with minimal performance impact.
What should you do? Each correct answer presents part of the solution. Choose two)
-
A
Create a new class in the AOT and implement the inventory adjustment logic within a method.
-
B
Extend an existing inventory class and override the update method to include the new logic.
-
C
Create a batch job that periodically adjusts inventory levels based on purchase orders.
-
D
Option A and B Only
D
Answer:
D
Explanation:
Wrong: Create a batch job that periodically adjusts inventory levels based on purchase orders.
Wrong: Modify the base inventory class directly to include the new adjustment logic.
Wrong: Use an event handler on the purchase order form to adjust inventory when a new order is placed.
Creating a new class or extending an existing class are both appropriate ways to add functionality without impacting the performance of the system. Modifying the base class directly is not recommended as it can lead to issues during updates and maintenance. Creating a batch job would not be real-time and could lead to performance issues if not managed correctly. Using an event handler on the purchase order form does not encapsulate the logic in a class, which was the requirement.
Extension points for frameworks - Training | Microsoft Learn
Finance and operations project type in Visual Studio - Finance & Operations | Dynamics 365 | Microsoft Learn
Related Topic:
Share Above MCQ