web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to hide menuitem on menu ?

(0) ShareShare
ReportReport
Posted on by 229
Hi guys,

Is there a way to hide menuitems under menus by X++ code ?

Regards.
I have the same question (0)
  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at
    No, you can't use X++ to hide elements of the main menu. If you want a user not seeing a menu item, don't give the user any permissions for it.
  • Awaxx Profile Picture
    229 on at
    Thank you Martin
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    300,970 Super User 2025 Season 2 on at
    Hi Awaxx,
     
    Actually, this is possible. Microsoft has several examples where they show or hide menu items part of a menu. You can find an example in the class ExpenseFeatureManagementShowHideMenuItems.
     
    You must use it only when it is needed. Don't use this for replacing security. Microsoft is using it to show an old or a new enhanced version of forms or workspaces.
  • Martin Dráb Profile Picture
    237,831 Most Valuable Professional on at
    Okay... I wasn't aware of SysMenuNavigationObjectFactory class. Good to know.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 672 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 534 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans