function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SalesforceDevelpmentSalesforceDevelpment 

Could you please tell any one actually when do we use custom settings in Real Time

Bhawani SharmaBhawani Sharma
When you want to hold some configurable data, you use custom setting. Like You have an Integration and this work on some auth code. This will be different for Sandbox and production.
Si for this scenario, you can use custom setting and Put your key there. Advantage will be, when you will deploy your code to PROD, you just need to change the custom setting value and that's all.