The Custom Settings are similar to Objects with one major benefit being they don’t need to be queried using SOQL. They create and manage custom data at the organization, profile, and user levels. Custom settings data are stored in the application cache and that means we can access it efficiently and it is used by formula fields, Visualforce, Apex, and the Web Services API. There are two types of Custom Settings – List and Hierarchy.
They used to create custom sets of data that can be associated with an organization, profile for a specific user.
Setting up Custom Settings
Click on New and Create Custom Settings Object Name.
If the setting type is disabled, go to the schema settings from setup enable Manage list custom settings type.
Custom Fields will contain different types and Create which type of fields. After you define custom settings, add fields to them. The custom fields contain the data used by the custom setting.
After creating a custom setting and adding fields, you can add records and use the values in these records in your Apex code and validation rules. To create records –
They are Few limits that need to be considered,
For more Blogs: https://blog.merfantz.com/
Reference from: click here