Hello everyone,
I came across something valuable and wanted to share it with you all. As many of you may be aware, feature management was introduced some time ago. We can also develop custom features using this framework.
However, the standard feature management only handles features globally, across all companies. If you want to enable a feature for e.g. a specific company, you can still partially use the standard feature management. In particular, you can toggle menus, menu items, and table fields using the AOT "FeatureClass" property with only implementing the interface IFeatureRuntimeToggle.
Instead of implementing the IFeatureMetadata in your feature class, which would list your feature in the standard feature management list, you can implement the IFeatureRuntimeToggle as shown below. This interface includes the boolean isEnabled() method
[ExportAttribute(identifierStr(Microsoft.Dynamics.ApplicationPlatform.FeatureExposure.IFeatureRuntimeToggle))]
internal final class MyRuntimeToggleFeature implements IFeatureRuntimeToggle
{
public boolean isEnabled()
{
return MyFeatureImplementation::isFeatureEnabled();
}
}I hope this information is helpful. With this you can build your own "feature management list" that could be more granular controlled for e.g. specific companies / data areas in the application.

Report
All responses (