Skip to Content

MB-500: What Are the Top Methods to Extend InventTable in Microsoft Dynamics 365?

How to Extend InventTable Best Practices for Default Field Initialization in Dynamics 365?

Table of Contents

Question

You have been tasked with extending the InventTable to include a new field for tracking inventory location.

You need to ensure that the new field is initialized with the default inventory location whenever a new record is inserted.

What two methods should you use? Each correct answer presents part of the solution. Choose two.

Select all answers that apply.

A. Call the new method from an event handler for the Inserting data event.
B. Use a batch job to update the new field after the record has been inserted.
C. Modify the doInsert() method in the InventTable class.
D. Create a new method in the InventTable extension class to initialize the new field.
E. Create a trigger on the InventTable in the database to initialize the new field.

Answer

A. Call the new method from an event handler for the Inserting data event.
D. Create a new method in the InventTable extension class to initialize the new field.

Explanation

The correct methods involve creating a new method in the InventTable extension class and calling this method from an event handler for the Inserting data event. Modifying the doInsert() method is not recommended as it prevents data events from being raised. Creating a database trigger is outside the scope of AOT and not a best practice. Using a batch job would not ensure the field is initialized at the time of record insertion.

Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 exam and earn Microsoft Dynamics 365: Finance and Operations Apps Developer MB-500 certification.