You can utilize the custom metadata object FeatureToggle__mdt to set for:
- On/Off Feature Toggles
- Scheduled activation
- Scheduled deactivation
- Create a FeatureToggle__mdt record with the active checkbox checked.
- If you want an activation to occur in the future, set the Activation Date Time field.
- If you want to set a deactivation point (e.g. limited time offers), set the Deactivation Date Time field.
- In your Apex code, reference `FeatureToggleService.isFeatureActive(featureLabel)` to determine if the feature should be active.
Note: If you reference a Feature Toggle record label that does not exist it will assume the feature is active.