I am analyzing feature management framework in D365.
There are a few features: when it is enabled, the menu item or field will be visible, and vice versa.
Following are the examples:
1. There is feature named 'Populate product attribute values', which enables menu item 'Populate product attribute values' to path >> Product information management\ Periodic tasks.
2. There is feature named 'Post on-hand adjustments using configurable reason codes connected to offset accounts', if enabled it adds 'Offset account' field to Inventory management\ Setup\ Inventory\ Counting reason codes form.
I am trying to understand how that happens from back end, however could not find anything.
If anyone can guide me on this.
Thanks in advance!
Thanks for answering Mohit!
This is how it is handled.
Thank you so much.
You can see the Feature class is set on Menu item and the class check if feature is enabled or not.
Thanks Mohit for replying!
I understand the way standard code checks if feature is available or not. My question is, how standard is handling same thing on form or for menu item. How the UI elements enable/disable happens with feature. Tried to find same sort of logic on form method however it is not there. Curious to know that.
Hi Pooja, Check this article on how a new feature can be created by code. Even standard code checks if feature is enabled then perform action. You can find it in various places by doing metadata Search on keyword 'isFeatureEnabled' in visual studio.
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156