All Projects → rocnick → Togglr

rocnick / Togglr

Licence: MIT license
A Salesforce feature toggle framework

Programming Languages

Apex
172 projects

Togglr

A Salesforce Feature Toggle Framework

Abstract
You can utilize the custom metadata object FeatureToggle__mdt to set for:
  • On/Off Feature Toggles
  • Scheduled activation
  • Scheduled deactivation
How
  1. Create a FeatureToggle__mdt record with the active checkbox checked.
  2. If you want an activation to occur in the future, set the Activation Date Time field.
  3. If you want to set a deactivation point (e.g. limited time offers), set the Deactivation Date Time field.
  4. 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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].