What is Custom Settings in Salesforce and Explain It ?


What are Custom Settings in Salesforce?

Custom settings are objects that developers use to create different customized sets of data that have an association with the company, user, or profile. There are options where you can set the custom settings to either public or private. Some of the areas where custom settings get applied are the fields, Apex, flows, SOAP API, and validation rules. The data created by customer meetings must meet the user’s needs, allowing users to access it faster using the application cache. 

When you have data using the settings, users do not need to use database querying languages or the Salesforce Object Query Language to get the data. It uses custom objects which developers build to fix all the business processes and information that does not work well with the Salesforce objects. Many businesses should learn how to use custom settings and benefit from them. Some of the custom fields that the developers use are currency, checkbox, phone number, date and time, URL, text, number, textarea, percent, e.t.c.

The settings can lack some fields like lookups, formulas, picklists, e.t.c. which are important to use. It also lacks page layouts that developers can use. The lack of layouts forces developers to use visual force pages to meet the requirements. When working with these settings, there are no rules that one must use. 

                  Wish to make a career in the world of salesforce? Start with HKR’S  salesforce online training 

Types of Salesforce Custom Settings

We have two types of custom settings. This are:

List Custom Settings

It works with how the custom objects function. The main purpose of this custom setting is to cache all the data. It reduces the cost of the data due to easy access to the data. It makes the accessing of static data across the company easy. It eliminates the use of SOQL queries which are sometimes against the limits. What the users need to do is put the data in this type of setting without writing any SOQL for accessing the data. The data provided in the list settings does not vary according to the users or profiles, making it impossible for anyone in the company to access it.

The data is useful to different departments of the company. It enables the developers to have reusable data which everyone can access in the company. This setting is good for the type of data sets that companies use mostly in their salesforce applications.

We create a list custom settings by following the steps below:

  • Locate the menu and search for the Schema settings, toggle the button of Manage list custom settings to turn it on. By default, most of the settings are in hierarchy custom.
  • Under the Custom Setting Definition, input the names under the label and Object Name and then change the Setting type from Hierarchy to List.       List Custom Settings   
  • When working with data like phone numbers, when you input the country codes into the labels, It automatically fetches into the form without querying the database. After filling in the details under the label and other fields, click on the Save button.
  • Navigate to the custom fields, click on the New button, and it will open a new page where you get prompted to choose the Data type and choose the type according to the data you entered in the custom definition. If it was phone numbers, choose the phone and click Next. We will select text. 

List Custom 

  • On this page, there are several fields like Field label, length, field name, Description, e.t.c. Fill them out and click Save.
  • Under the created label, click on the Manage option to provide new fields.

created label

  • After all, the new fields click Save, and you can view your complete list of custom settings.

Salesforce Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

Hierarchy Custom Settings

Hierarchy custom settings help in ensuring the majority have the advantages for users. Its logic is efficient and enables users to customize their settings using different settings and rows. The settings match particular profiles and contacts that will meet the requirements of the company’s clients. This type of setting can scan all the client companies and their necessary profiles, look at the tasks handled by different people, and ensure that the final values shown to the user are more accurate and specific to what they want. 

It makes the companies make certain settings to several profile settings meant for the users, which get subjected to the user settings individually. They help the companies and their clients to define all their data hierarchically. This type of setting is suitable when defining defaults used by specific Salesforce applications, relying on the users, companies’ needs, and certain profiles. Hierarchy custom settings sync well with the Salesforce functionalities since they are highly customizable, and you can change them to meet the customer’s needs.

We can create an example of a Hierarchy Custom Setting using the steps below:

  • Navigate to the Custom Settings option, input the data under the Label, Object Name, Setting Type by default is a hierarchy and click on the Save button.
  • A new dialog box will open, and you will get prompted to choose the type of data type, select the one that matches your inputs, and Save.
  • Under the next step, fill in your Field Label, Length, Field Name, and Description, among others, and click on the Save option.

Hierarchy Custom Settings    

  • When the dialog opens, click on the New button to create organizational access to the data.
  • After saving, you will get options to add other alternatives.
  • Another dialog box will pop up, prompting the administrator to add the profiles that will get associated with the values. When you click the Save button, several users will be under the custom settings. And that’s the whole process of creating the hierarchy of custom settings.
How to Create Custom Settings

Log in to your Salesforce CRM, locate the Custom Settings, and several fields require one to fill. Under the label and Object name, input worker for both fields. Under the Settings section, choose between list and Hierarchy. Under Visibility, set it to public, enter the Description, then click on the Save button.

How to create custom settings

In some cases, you find that some parts of the settings section got disabled, you need to navigate to the schema settings and change the settings to enable it. Go to the custom fields and create the field by entering data into Field Label, Data type, API name, and action. To add data, hover over the Action settings to add more data.

Enroll in our Siebel CRM Admin Training program today and elevate your skills!

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

Why do we need Custom Settings?

Using custom settings in the Salesforce CRM and applications has several benefits. This include :

  • It allows faster fetching of data, for example, if you have many records and you want to retrieve one row, you will use custom settings to get the result in a short period due to the ability of customer settings to get stored in the cache.
  • They also avoid the chances of hitting the governing limits. There are several governing limits from SQL queries, DML statements, Sendmail methods, SOSL queries, e.t.c.
  • Due to the use of application cache, one can have faster data access, leading to better performance.
  • It enables the users to access different data according to the user’s profile and role in the organization, which promotes data integrity.
  • If you lack knowledge about databases or the Salesforce Object Query Language, it helps you avoid learning them.

                  Wish to make a career in the world of salesforce? Start with HKR’S  salesforce online training  in Canada 

How to Fetch Custom Settings in Salesforce?

There are several ways of fetching custom settings in Salesforce. These methods are:

To fetch custom settings, it depends on the type of custom settings. Let us look at all types of settings.

How to fetch data on list custom settings.

We use the getAll() method to fetch certain custom fields found in List settings. The method returns a list of the names and all the setting records i.e 

Map var =

CustomApiName.getAll();

Eg: Map worker = Worker__c.getAll();

We use the getValues() method  to fetch the values that match with a certain dataset. It normally works for both the custom settings i.e 

CustomApiName var = CustomApiName.getValues(name of dataset);

For example Worker__c stud = Worker__c.getValues('Mark');

To fetch values for hierarchy custom settings, we use the methods below to achieve the same:

We use getOrgDefaults() method to return the data set records for the company i.e 

CustomApiName var = CustomApiName.getOrgDefaults();

We use getInstance(input the user id or the profile id) method to get data records for a certain user or profile details i.e

CustomApiName var = CustomApiName.getInstance(userId/ProfileId);

We use the getInstance() method to get the records for the logged users.

CustomApiName var = CustomApiName.getInstance();

Limitations of Custom Settings in Salesforce?

Some of the limitations of using Salesforce include:

  • Each custom setting can only handle 300 fields. If there are more than 300, they can’t support more than 300 fields.
  • When storing the cached data, the storage will depend on the licenses. For 1 MB, you get the multiplication by using the licenses each organization owns. For example, a company can support up to 4MB of storage if it uses four licenses.
  • When you want to access an undeleted custom setting, you will get an error if you don’t have permission to access the custom settings. 
  • There is no option to share the custom setting records and objects.
  • When creating the custom setting, you cannot get the ownership after its creation.
  • When dealing with each certified package, one gets a separate limit when working with the company limit.

Click here to get frequently asked Salesforce Interview Questions & Answers

Salesforce Training

Weekday / Weekend Batches

 Conclusion
When creating custom settings in a distributed package, you must develop several builds for populating the custom settings with data after the package installation. Implementing custom settings is easier and straightforward and has many benefits for the users. The article has enabled you to better understand the two types of custom settings, the advantages, and how to install them in your application.

Related articles:



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Some Real – Time Examples of Robotic Process Automation

WEB Scraping

A web scraper is a tool by which users can retrieve data from various websites. The web scraper will take the information gathered and export the data to a spreadsheet for in-depth analysis. We need to spend hours of time browsing and gathering the required information, and this is a boring task and may even lead to mistakes. With the implementation of Web scraping, companies can retrieve the data effectively and reallocate human resources to those that focus on the operations and ROI.

Robotic Process Automation in Web Scraping uses bots to automate the retrieval of web data from the selected websites and store it. It gives quick results without the need for manual entry of the data, without any errors. Some examples of RPA web scraping are extracting the details from competitor websites, using Web scraping for retrieving financial information for in-depth market research, etc.

Become a RPA Certified professional by learning this HKR RPA Training !

Call Center Operation 

Call centres involve various repetitive and time-consuming tasks that rarely require decision making. Using RPA in call centres for these excessive scales of rule-based functions will have a great impact, and it will enhance the experience of the call centre agents and the customers. 

Generally, when a customer reaches the call center agent, he needs to identify the customer to get the necessary information about his orders, pending tickets, etc., in their database. During the retrieval of the customer information, the agent may face several issues which may affect the customer experience. 

RPA facilitates the retrieval of customer details from various systems without switching to different applications. Deployment of RPA in the call centres will minimize the time for detecting the customer and viewing all the required information of the customer at the same place. So, the customer need not wait for a long time while the agent is retrieving the customer’s information. This will automatically enhance the customer’s experience by minimizing the duration of the call.

Robotic Process Automation Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

E Commerce Operation 

Robotic Process Automation plays a vital role in E-commerce operations. In E-commerce operations, RPA is used in maintaining customer relations, workflow management, auditing and finance, demand and supply planning, logistics and supply chain management, etc. RPA in E-commerce saves time and resources, minimizing the number of errors and improving the customer experience and the number of sales. 

RPA as a service enables e-commerce companies to rent cloud-based software robots hourly, starting as low as 2 hours a week. This indicates that you can enjoy the benefits of RPA without any investment in the licenses and software.

File Transfers

File transfer refers to the movement of files from one system to the other. Whatever the reasons why organizations do not devote sufficient time to managing their data for backups, such processes may be completely automated with RPA solutions by giving them the necessary credentials, source and destination information for the entire job you want to automate. Tracking the complete process can be managed by the RPA solution; the human task may be generated when human intervention is necessary.

Automating the file transfer provides the benefits like reduction of human errors, saving administrative hours, simplifying the data transfer, removing the delays and bottlenecks, improving transparency and monitoring through automated reporting, etc.

Get ahead in your career with our RPA Tutorial !

Email Automation

Email is now the primary means of communication for companies worldwide. So, many organizations are looking to automate some parts of their email operations to serve clients more effectively and to enable humans to concentrate on the messages they alone can manage. Robotic Process Automation functionality has a user-friendly drag-and-drop interface enabling the users to automate email actions quickly and easily without the need for a single line of code. Users can enjoy the benefits of email automation while capturing inbound messages, monitoring mailboxes, and triggering an incoming email-based process.

Accounting automation

While industries have already started using RPA in their processes, Automation has also started to seep into the back office. With the help of “robot” software that can follow specific rules and actions, processes (that usually require human beings to perform a time-consuming intervention) can be automated.

Robotics Process Automation quickly transforms accounting and financial operations, probably faster than any other modern technology. The RPA in accounting can automate regular, repetitive, rules-based processes, allowing accounting staff to spend more time serving the clients and other more important tasks. In accounting, RPA can be effective and reduce processing times, minimize input errors, and reduce costs.

Explore RPA Sample Resumes Download & Edit, Get Noticed by Top Employers! 

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

Report Generation and Distribution

The use of spreadsheets and reporting are fundamental activities in many organizations and an integral part of strategic decision-making. However, generating effective reports can be a difficult process for your team, and many basic applications need manual input to compile reports. Report automation removes the need to generate reports manually, reduces the risk of errors, and frees the analysts so they can analyze the data to their best.

Through Automation, the report can be emailed to stakeholders, removing the manual involvement needed in the report generation/distribution process. Automation facilitates user-friendly time and event-based scheduling to allow reports to be generated, encrypted, uploaded, emailed to the management, etc., within a single automated workflow.

Telehealth and Virtual Medical Services

In every country, the healthcare sector is a complex system but essential for the well-being of the citizens, which includes health insurance, medical equipment, clinical trials, etc. Managing the information related to the clinical applications, scheduling the applications, third party portals and other related work is a challenging task. Integrating those systems is just as difficult and requires a lot of work.

And Maintaining the balance between the growing number of people requesting care and the administrative burden of hospital processes requires a more efficient and accurate administrative process. Using Automation in the healthcare sector can help healthcare organizations increase operational efficiency, reduce operational costs and reduce human mistakes in data processing. 

Top 30 frequently asked RPA interview questions & answers for freshers & experienced professionals

Data analysis

Data has a significant role in various businesses for various reasons. It makes it possible to make decisions, identify trends and much more that is good for the company. But, big data analytics is not always simple. So it’s just impossible to do everything by hand most of the time. The analysis of all data by a human hand will be a laboriously long, arduous and boring process. That is why many different businesses are leveraging Robotics Process Automation to assist them in analyzing data. Companies use RPA technologies to manage a range of different processes efficiently. Some of the benefits of using RPA in data Analysis are: 

  • Efficiency
  • Errors reduction
  • Minimized costs

 Remote Working

Emerging technology like Robotic Process Automation is offering a number of productive ways to work remotely. For the past two years, employees have been working from home. It is challenging for HR to manually review the time records of the employees and their absences. Automating the process through the RPA can allow HR to validate records by verifying the active time of employees and the other factors. Bots can also remind the HR with alerts about being absent or any other configured aspect. This provides an opportunity for HR staff to manage time and attendance better.

Wish to make a career in the world of OpenSpan? Start with HKR’S  OpenSpan Training ! 

Robotic Process Automation Training

Weekday / Weekend Batches

 Conclusion : 

All the above are some examples of robotic process automation. RPA has a wide range of benefits for organizations. Apart from these, there are plenty of other examples in which Robotic Process automation is helpful. RPA automates repetitive work and improves operational efficiency, data security and efficiency without compromising an organization’s existing infrastructure and systems. I hope this blog is helpful.



Source link