"Maximizing Sales and Customer Satisfaction with Salesforce's Customer Setting Feature: A Step-by-Step Guide"


Custom settings in Salesforce

Custom settings in Salesforce are similar to custom objects and enable developers to create custom sets of data, as well as create and associate custom data for an organization, profile or specific user. Custom settings can be used in formulas, validation rules, Apex code and the Web Services API.

There are two types of custom settings in Salesforce: List Custom Settings and Hierarchy Custom Settings.

List Custom Settings are a type of custom setting that provides a reusable set of static data that can be accessed across your organization. This type of custom setting is similar to a custom object with custom fields and can be used to store data that users can access via formula fields, validation rules or Apex code.

Hierarchy Custom Settings are another type of custom setting that uses a built-in hierarchical logic for “personalizing” settings for specific profiles or users. This type of custom setting allows you to “set” default values at the organization level and then override those values for specific profiles or users.

To create a new custom setting in Salesforce:

  1.  Navigate to Setup and search for “Custom Settings” in the Quick Find box.
  2.  Click on the “New” button.
  3.  Select either “List” or “Hierarchy” as the Setting Type.
  4.  Enter a label and name for your new custom setting.
  5.  Click on the “Save” button.

Once you have created your new custom setting, you can add fields to it just like you would with any other object in Salesforce. You can also use these fields in formulas, validation rules or Apex code.

In conclusion, custom settings provide developers with an easy way to store and access reusable sets of data within their Salesforce organization. With two types of custom settings available – List Custom Settings and Hierarchy Custom Settings – developers have flexibility when it comes to personalizing their applications for different users or profiles within their organization.

Steps to Create List Custom Settings

List Custom Settings are a type of custom setting that provides a reusable set of static data that can be accessed across your organization. This type of custom setting is similar to a custom object with custom fields and can be used to store data that users can access via formula fields, validation rules or Apex code.

For example, let’s say you have a list of shipping carriers and their corresponding shipping codes. You could create a List Custom Setting to store this data and then use it in your Apex code or formula fields to automatically populate the shipping carrier code based on the selected carrier.

To create a new List Custom Setting:

  1. Navigate to Setup and search for “Custom Settings” in the Quick Find box.
  2. Click on the “New” button.
  3. Select “List” as the Setting Type.
  4. Enter a label and name for your new custom setting.
  5. Click on the “Save” button.

Once you have created your new List Custom Setting, you can add fields to it just like you would with any other object in Salesforce. You can also use these fields in formulas, validation rules or Apex code.

Steps to Create Hierarchy Custom Settings

Hierarchy Custom Settings are another type of custom setting that uses a built-in hierarchical logic for “personalizing” settings for specific profiles or users. This type of custom setting allows you to “set” default values at the organization level and then override those values for specific profiles or users.

For example, let’s say you have a custom setting that stores the default number of days before an opportunity is considered “stale”. You could set the default value at the organization level to 30 days. However, for certain profiles or users, you may want to override this value and set it to a different number of days.

To create a new Hierarchy Custom Setting:

  1. Navigate to Setup and search for “Custom Settings” in the Quick Find box.
  2. Click on the “New” button.
  3. Select “Hierarchy” as the Setting Type.
  4. Enter a label and name for your new custom setting.
  5. Click on the “Save” button.

Once you have created your new Hierarchy Custom Setting, you can add fields to it just like you would with any other object in Salesforce. You can also use these fields in formulas, validation rules or Apex code.

After Adding Fields to Custom Setting

Once you have added fields to your custom setting (either List or Hierarchy), you can use them in formula fields. Here’s how:

  1. Navigate to the object where you want to create a new formula field (e.g., Opportunity).
  2. In the “Fields & Relationships” section, click on the “New” button.
  3. Select “Formula” as the Data Type and click on the “Next” button.
  4. Enter a label and name for your new formula field.
  5. Select the type of formula result (e.g., Text, Number, Date).
  6. In the formula editor, you can reference fields from your custom setting using the following syntax:   $Setup.CustomSettingName__c.CustomFieldName__c
  7. Click on the “Check Syntax” button to make sure your formula is valid.
  8. Click on the “Next” button and follow the prompts to configure any additional field settings.
  9. Click on the “Save” button.

Once you have created your new formula field that references fields from your custom setting, it will automatically update whenever those custom setting values change.

Comments

Popular posts from this blog

"Beginner's Guide to Using Flows in Salesforce for Business Automation"

"Mastering the Approval Process Object in Salesforce: Everything You Need to Know"

Salesforce Vlocity: Revolutionizing the Customer Experience!