How to Add a Menu Item Without Modifying Source Code in Dynamics 365 F&O?
Table of Contents
Question
A developer needs to customize a Microsoft Dynamics 365 finance and operations apps implementation by adding a new menu item to an existing menu.
You need to add the menu item without modifying the original menu’s source code.
What should you do?
Select only one answer.
A. Use a class extension to inject the new menu item into the original menu.
B. Directly modify the source code of the original menu to add the menu item.
C. Create a menu extension and add the new menu item.
D. Create a new menu that duplicates the original and add the menu item there.
Answer
C. Create a menu extension and add the new menu item.
Explanation
The correct approach to add new menu items without altering the original menu’s source code is by creating a menu extension, hence this option is correct. The choice suggesting direct modification of the original menu is incorrect, as such an approach isn’t recommended. The option proposing the duplication of the menu is also incorrect as it does not extend the original menu and can lead to maintenance complications. Lastly, the option advising to use class extensions is incorrect, as these are typically utilized to add methods and variables, not to add menu items to menus.
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.