New answers tagged customsetting
GetInstance and GetValues (Custom Setting)
Yes, the input parameter of those methods is a reference to a String object. When you declare a literal string (i.e. 'something') you are indeed creating a new object, then you could explicitly assign ...
How to store UI Preference based on User
Since you want it global, you'll need to store the preferences as data on the Salesforce org. I would recommend using a record associated with the user, ensuring that there is only one "UI ...
Securely Storing Oauth Credentials for Apex Callouts
With Winter '23 the preferred approach would be to (safely) store your secrets as 'External Credentials' using the re-architected Named Credentials architecture. See: https://developer.salesforce.com/...
Any way possible to move multiple Set<String> into Custom Setting or Custom Metadata?
There are a number of different options here. I've provided two, both based on Custom Metadata Types. You should avoid Custom Settings unless you need the data to vary by user or profile (and even ...
Top 50 recent answers are included