Posts

Showing posts with the label new custom feature

Create custom feature to add in the feature management

Steps to write custom feature code 1. Create class to create new feature  2. Build the project after creating the class 3. In the feature management click on check for updates to see the new feature 4. Use this class to enable/disable new feature from feature management, condition is written like below Condition by using feature management   if (FeatureStateProviderV0::isFeatureEnabled(ClassNameFeature ::instance())) { //Code here } Creation of class : using Composition = System.ComponentModel.Composition; [Composition.ExportAttribute(identifierstr(Dynamics.AX.Application.IFeatureMetadataV0))] public final class ClassNameFeature implements IFeatureMetadataV0 {     private static ClassNameFeature instance;     private void new()     {     }     private static void TypeNew()     {         instance = new ClassNameFeature();     }     [Hookable(false)]     public...