Single Choice Easy

Q

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.

ID: #22722 Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer 101 views
Question Info
#22722Q ID
EasyDifficulty
Exam MB-500: Microsoft Dynamics 365: Finance and Operations Apps DeveloperTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Call the new method from an event handler for the Inserting data event. ✔ ✖
  • B Create a new method in the InventTable extension class to initialize the new field. ✔ ✖
  • C Use a batch job to update the new field after the record has been inserted. ✔ ✖
  • D A and B ✔ ✖
Correct Answer

Explanation

Wrong: Use a batch job to update the new field after the record has been inserted.

Wrong: Modify the doInsert() method in the InventTable class.

Wrong: Create a trigger on the InventTable in the database to initialize the new field.

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.

Write extensible tables - Finance & Operations | Dynamics 365 | Microsoft Learn

Add a table extension to a project - Training | Microsoft Learn

Today: 0 answered · 0 correct
Save progress
Free account

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
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.

Related MCQ Questions