New answers tagged customsetting
0
votes
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 ...
1
vote
Accepted
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 ...
0
votes
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/...
2
votes
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
Related Tags
customsetting × 515apex × 182
visualforce × 51
managed-package × 37
trigger × 32
custom-metadata × 32
unit-test × 28
custom-object × 24
soql × 23
custom-field × 14
profile × 13
lightning-aura-components × 11
security × 11
formula-field × 9
picklist × 9
custom × 9
rest-api × 8
salesforcedx × 8
formula × 8
sandbox × 8
permission-sets × 8
customlabel × 8
controller × 7
lightning × 6
community × 6