Questions tagged [customsetting]
Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user.
524 questions
0 votes
0 answers
22 views
How to configure two Permission Sets where one can edit Custom Settings and the other can only view them in Apex?
I need to set up two different Permission Sets in Salesforce: Admin Permission Set: should be able to view and edit records in a Custom Setting (Hierarchy or List type). User Permission Set: should be ...
0 votes
0 answers
37 views
CustomSetting Access for a user is not working when added on a permissionSet which is embedded in a permsetGroup
Steps to Reproduce : Create a CustomSetting : TestCSErrorInLWC__c Give access to this customsetting in a permissionSet. Put this permissionSet into a PermissionSetGroup. Give a User access to the ...
1 vote
0 answers
88 views
Disabling async chaining process with record flag: Custom Settings or Custom Metadata?
I'm rereading Dan Appleman's book "Advanced Apex Programming in Salesforce", and I stumbled on the following statement in the chapter about asynchronous processing: Queueable Apex code ...
0 votes
0 answers
46 views
Use case for trackTrending on Custom Setting fields (tracking changes to field values for Custom Settings)
My context for this question is digging into functionality and limitations for custom settings. We use custom settings for a handful of things, one recurring use case being to avoid hardcoding ...
0 votes
0 answers
42 views
Is it possible to ship List Custom Settings in a Managed Package for Clients that don't have it enabled?
The use case is like this: My company wants to ship new AI features in their managed package with access to Anthropic and Gemini. They don't want Clients to be able to see the API keys for each ...
0 votes
2 answers
198 views
How to invoke custom settings dynamically?
does anyone having idea how can we invoke custom settings dynamically? Please see the below example. I need to write triggeraccount__c & triggeraccountinventory__c in separate block to check ...
0 votes
1 answer
534 views
How do I use a Custom Setting in a Lightning Email Template?
I would like to use a Custom Setting (or Custom Metadata) as a merge field in my Lightning Email Template, but am getting errors with the suggestions I found using Custom Settings when googling. I ...
1 vote
1 answer
698 views
Create Named Credential with authentication and user id in url parameters
I have an endpoint with the following format: https://test.com/api?salesforce=123&agent=123 Do Named Credentials allow me to store the salesforce value in the Named Credentials associated External ...
2 votes
1 answer
104 views
Storing Sensitive Information in ISV App
In our managed package, we have a lightning page where the app admin can set a couple of settings related to the app, including an API key to interact with 3rd party system, and all this information ...
2 votes
1 answer
2k views
Create ContentDocumentLink after insert ContentDocument error
I have pretty simple requirement but I am facing error and I can't understand what is going wrong. I need to add ContentDocumentLink to add file to CollaborationGroup after insert with C permission. I ...
1 vote
0 answers
545 views
Dynamically selecting external credentials with Named Credentials
We have a button that integrates with an external system using Named Credentials. We are using per-user authentication here and every user authenticates themselves with their external system username ...
-1 votes
2 answers
271 views
Can we create report on custom setting in Salesforce?
Can we create report on custom setting in Salesforce? when i edit the object that is created for custom settings, it directs to the custom setting edit page, so i cannot edit and check 'enable report' ...
0 votes
1 answer
5k views
What is the major difference between Custom Setting and Custom Metadata?
I have gone through various articles for the difference between Custom Setting and Custom Metadata but I couldn't find the major difference why we should setting over metadata or metadata over setting....
0 votes
1 answer
1k views
Custom Settings - Unable to access or see custom setting in Flows
I created a Custom Setting with Visibility - Public & Type - List to reference in Flows. But I don't know why I can't find the value. I noticed other Custom Settings with Type - Hierarchy are ...
-1 votes
1 answer
749 views
LWC - How to populate component when the page just load
I'm using Custom Setting to remember what user set for that specific setting. So when the component load, it will fetch values from Custom Setting. (1)If there is no value => Column will generate ...