My package has a CustomSetting
object that contains all the configuration values needed to power my application. I would like to add a field that contains all "open" lead statuses, configurable by the installer, which I can then use in a formula field to see if a lead is "open" or not (as opposed to rejected, inactive, converted, etc).
Unfortunately there isn't any way to create a field for a CustomSetting
object that contains several values. The best way I can think of is just to have the installer enter comma-separated list of statuses, store that as a string, and then in formulas, use:
CONTAINS($Setup.MyAppSettings__c.OpenStatuses__c, Status)
Is this the best way to do this? Am I thinking about this wrong?
Thanks for your help!