Announcements
No record found.
Dear all,
I am having a requirement to enable/disable menu on setting a toggle button to yes which is in parameter table. Can we achieve this?
or
If we cannot achieve this, Can we display a message saying that ON the parameter to access this menu?
Please help me,
Regards,
Ajay
Hi Ajay,
Menus cannot be enabled or disabled through code. Instead, you can restrict them by adding warning messages in the init method of all the forms in the menu.
Thanks,
Girish S.
Hi Ajay, Please check this article and see if you can leverage it. This was published for AX 2012 so not sure feasibility with D365 F&O and even if feasible, is it recommend or not.
www.maziktech.com/.../
Similar topic was discussed before on hiding menu with Security, please check this thread
community.dynamics.com/.../hiding-menu-and-sub-menus-for-specific-roles-in-d365-f-o
Hi Girish thanks for your reply.
I am new to D365 f and o development. Correct me if I am wrong, If I do this the Form will open with warning messages and all the fields in the form will be displayed. Am I correct .
.
Thanks.
Thanks for your reply Mohit Rampal.
I'll go through the above mentioned link.
No form wont display - It will only display the warning message. Fields inside the form won't be shown.
If the Parameter is Yes, you can throw error inside the init method of the form.
Ok, Thank you Girish.
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.
Congratulations to our 2026 Super Stars!
Thanks to all of our 2025 Community Spotlight stars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 517 Super User 2026 Season 1
Giorgio Bonacorsi 440
Adis 266 Super User 2026 Season 1