After creating custom setting and adding fields, you can add records, then use the values in these records in your Apex code and validation rules.
Required Editions
| Available in: Salesforce Classic and Lightning Experience. |
|
Available in: Group, Professional, Developer, Enterprise, Performance, Unlimited, and Database.com Editions. Packages aren’t available in Database.com. |
| User Permissions Needed | |
|---|---|
| Customize Application | |
- From Setup, enter Custom Settings in the Quick Find box, then select Custom Settings.
- Click Manage next to a custom setting, or from the detail page for a custom setting.
-
Provide or change values for the custom setting.
If you’re managing a list setting:
- To add data to the fields, click New.
- To change the name of the data set or to change the data, click Edit next to the name of an existing set of data.
- To delete the data set, click Delete next to the name of an existing set of data.
If you’re managing a hierarchy setting, decide where in the permission hierarchy you want to add default data (organization, profile, or user).- To add default data at the organization level, click New in the Default Organization Level Value section. If data has already been defined for the organization, you can only edit or delete it.
- To add default data at the profile or user level, click New in the lower section of the page, near the Setup Owner.
After you define data:
- To change the default data set at the organization level, click Edit in the Default Organization Level Value section.
- To delete the data set (only for hierarchical custom settings), click Delete in the Default Organization Level Value section.
- To view the data (only for hierarchical custom settings), click View next to the name of an existing set of data.