Loading
Ongoing maintenance for Salesforce HelpRead More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create Custom Settings

          Create Custom Settings

          Use custom settings to create custom sets of data, or to create and associate custom data for an org, profile, or user.

          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  

          Custom settings are similar to custom objects in that they let you customize org data. Unlike custom objects, which have records based on them, custom settings let you utilize custom data sets across your org. Custom settings also let you distinguish particular users or profiles based on custom criteria.

          Custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. This data can then be used by formula fields, validation rules, flows, Apex, and SOAP API

          Note
          Note If you're thinking of using List Custom Settings, consider using Custom Metadata Types instead. Unlike List Custom Settings, you can migrate the records of Custom Metadata Types using Packages or Metadata API tools.
          1. Review the protection and privacy options.
          2. Create the custom setting.
          3. Add fields and data.
          4. Reference the custom setting data in your application using formula fields, validation rules, Apex, or SOAP API.
          Example
          Example

          These examples illustrate how you can use custom settings.

          • A shipping application requires users to fill in the country codes for international deliveries. By creating a list setting of all country codes, users have quick access to this data without needing to query the database.
          • An application calculates and tracks compensation for its sales reps, but seniority determines commission percentages. By creating a hierarchy setting, the administrator can associate a different commission percentage for each profile in the sales organization. Within the application, one formula field can then be used to calculate compensation for all users. The personalized setting at the profile level inserts the correct commission percentage.
          • An application displays a map of account locations, the best route to take, and traffic conditions. This information is useful for sales reps, but account executives only want to see account locations. By creating a hierarchy setting with custom checkbox fields for route and traffic, you can enable this data for just the Sales Rep profile.
           
          Loading
          Salesforce Help | Article