Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How Feature management handles enable/disable of fields or menuitem?

(0) ShareShare
ReportReport
Posted on by 35

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!

  • Pooja Rawat Profile Picture
    Pooja Rawat 35 on at
    RE: How Feature management handles enable/disable of fields or menuitem?

    Thanks for answering Mohit!

    This is how it is handled.

    Thank you so much.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: How Feature management handles enable/disable of fields or menuitem?

    You can see the Feature class is set on Menu item and the class check if feature is enabled or not.

    pastedimage1683897099804v1.png

    pastedimage1683897109008v2.png

  • Pooja Rawat Profile Picture
    Pooja Rawat 35 on at
    RE: How Feature management handles enable/disable of fields or menuitem?

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: How Feature management handles enable/disable of fields or menuitem?

    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.

    paragchapre.com/.../

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans