Q
The development team is working on a Microsoft Dynamics 365 finance and operations apps implementation. They need to implement a custom business logic that will be triggered whenever a sales order is updated.
You need to ensure that the custom business logic can be executed without modifying the base SalesTable class.
What should you do?
Question Info
Choose the Best Option
Click any option to instantly check if you're correct.
Explanation
The correct answer is to create a class extension and add an event handler, which allows custom code to be executed without altering the original class, adhering to best practices for extensibility. Modifying the base class directly is not recommended as it can lead to issues during updates and maintenance. Creating a new class that inherits from the SalesTable class is unnecessary for this scenario and could complicate the system. Using a display method on the form is not appropriate for executing business logic tied to data updates.
Manage metadata by using the Application Explorer - Training | Microsoft Learn
Want to remember what you got wrong?
Create a free account in seconds to track your score, revisit mistakes and continue X++ Programming Language where you left off.
- Save your progress & streak
- Topic-wise quizzes & scores
- Bookmark tricky questions
- Printable MCQ sets
Nice — 3 questions done!
Don't lose this streak. Sign up free to save your score and pick up exactly where you stopped.
Share This Question
Challenge a friend or share with your study group.