Extending Enumerations in D365 FO

MB-500 By islever Editorial Last updated

Create classes and extend AOT elements

Short answer

B The solution does not meet the goal because elements must be added to an extension enum, not the base enum.

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might
meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
A company uses Dynamics 365 finance and operations apps.
You have a custom enumeration named CarType. The enumeration has the following elements: Sedan, SUV.
You must extend CarType and add a new element named MUV to CarType.
You need to develop a solution that meets the requirements.
Solution: Set the is Extensible property to true for the CarType enumeration. Add the MUV element to the CarType base enumeration.
Does the solution meet the goal?
  1. Yes
  2. No Correct Answer

Key Takeaways

The main trap is confusing setting IsExtensible=true with actually adding elements to the base object rather than an extension.

This question tests the correct method for extending enumerations in Dynamics 365 Finance and Operations. The correct approach involves creating an extension, not modifying the base.

Common mistake: Choosing Yes because the user believes that since it's a custom enum, they can modify it directly, ignoring the strict separation between base and extension layers.

Expert Analysis

In Dynamics 365 Finance and Operations, extending Application Object Tree (AOT) elements requires a specific architecture to ensure upgrade safety. The core principle is that base application objects should never be modified directly. Instead, extensions must create new versions of the element within an extension project.

The proposed solution fails because it suggests adding the 'MUV' element to the 'CarType base enumeration'. Even if the Is Extensible property is set to true, you cannot add elements to the base definition in your own code; that definition is owned by Microsoft or the original vendor. To extend the enumeration, you must create a new enum with the same name ('CarType') inside an extension module. This new enum inherits from the base and adds the 'MUV' element. By modifying the base, the solution violates the extensibility model and would likely cause deployment errors or conflicts.

Comments highlight this exact trap: users often confuse 'extending' a type with 'modifying' its source. One comment correctly notes that for custom entities, you might not need to extend, but here the goal is explicitly to extend an existing custom enum. Another comment emphasizes that the new element must go into the extension, not the base. Getting this wrong leads to failed deployments or inability to merge changes later.

Exam Strategy

When asked about extending any AOT element (enums, tables, classes), always look for options that mention 'Extension' or 'New Model'. Any option suggesting direct modification of the base element is incorrect due to upgrade safety constraints.

Frequently Asked Questions

Can I modify the base enum if I am the developer?

No. Base elements are read-only in your environment. You must use the Extension framework to add elements, even for custom base enums.

What does Is Extensible do on an enum?

It allows other models to create an extension of that enum. It does not permit adding elements to the base definition itself.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 4 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 4

  1. PrasanthGO 👍 4
    Option A is correct Because Its a custom entity so no need of extending it you can add the element directly
  2. PanduRangaReddy 👍 3
    But the question says "You must extend CarType and add a new element named MUV to CarType." not just "add a new element named MUV to CarType."
  3. cbef765 👍 1
    You must add the new element to the EXTENSION, NOT the BASE enum
  4. lalz21 👍 1 Answered B
    Correct

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All MB-500 Questions

Access 115 questions with complete answers and detailed explanations.

View Full MB-500 Practice Test →

← Back to MB-500 Study Guide