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.

Filter by
Sorted by
Tagged with
4
votes
1answer
30 views

Alternate of Protected Custom Settings In an AppExchange Managed Package for Large Configuration Data

We have an AppExchange App which needs to connect with an external application via API Calls. API calls need to happen in individual user context and not in a single Integration User context. This ...
0
votes
1answer
14 views

What values will have the field on Custom Setting when the setting is not set for specified profile

I have a question regarding Custom Settings. I'm implementing a bypass strategy for triggers. I created a Custom setting with one checkbox called Bypass_Processes__c for System Admin. Then in the code,...
0
votes
1answer
29 views

Custom Setting Update Access [closed]

I have a custom setting which i want to update without using admin profile. I created a permission set and assign it. Can any one help me on this? Thanks in advance for any help
0
votes
1answer
22 views

Is there a performance difference between Custom Settings vs Custom Objects? [closed]

Specifically, is it faster to query for a single record from a Custom Setting vs a Custom Object? Or is it about equal performance?
0
votes
1answer
46 views

Error: Too many DML statements: 1 AND Apex methods that are to be cached must be marked as @AuraEnabled(cacheable=true)

I have an AuraEnabled apex method which take a value and does a callout to get an Access Token and Refresh Token, stores them into Custom Settings and then returns true or false based on the outcome. ...
0
votes
1answer
37 views

Export records from Salesforce to deploy to another org which are useful for configurations like Custom Settings

I have retrieved the metadata from sandbox to deploy it to the higher org using ANT. ANT have created folders for all the components like objects, classes, etc. But, it did not retrieved many records ...
0
votes
0answers
24 views

Retrieve every records for each custom settings [duplicate]

I want to know a way to download or export or view all the records for each custom settings without querying them individually. I have tried a chrome extension called Custom settings exporter for ...
0
votes
0answers
23 views

How can we compare two element values in LWC? [duplicate]

I want to compare the value of two different custom settings field in html like below? Is there any way to do that where I dnt have to write a compare module separately? template if:true={navSubItem....
0
votes
1answer
42 views

Compare Text Field to Custom Setting Values

I have the below line that compares 2 text fields on a custom object to see if they contain specific values: if(Object.Notes__c != null && (Object.Notes__c.contains('Value1') || Object....
0
votes
1answer
39 views

Export custom settings data

is there any simple way to export custom settings' data? I can import them by Data Import Wizard, but how can export them as a .csv?
1
vote
1answer
73 views

SFDX source:retrieve Custom Settings from Org?

From within a vscode SFDX project, I'd like to retrieve and eventually manage / set custom settings from within my project. Command that I'm using for this is a standard CLI call of source:retrieve - ...
4
votes
2answers
86 views

Custom Setting proxy class, how to make its operation transparent outside of tests?

It's been fairly well established1, 2 that inserting/updating custom settings in a unit test hurts several aspects of the test: Makes tests take longer to execute Makes it hard to run tests in ...
0
votes
1answer
31 views

custom settings in apex

how can I get value of my custom settings PrefixGroup__c before insert record in Apex class. This is my code but is not working. Map<String, powerBI_authentication__c> setting = ...
0
votes
1answer
65 views

Is there some standardized way to ensure custom settings are not automatically cloned into Sandboxes?

Among other things, our custom settings include URLs for production servers and credentials to access those servers. Arguably, some of these things should probably be Named Credentials, but the ...
0
votes
0answers
53 views

Custom Settings allow limit is 0MB in Sandbox

I try to update Custom Settings in my sandbox org. And I meet CUSTOM_SETTINGS_LIMIT_EXCEEDED error message. I found Custom Settings in my Sandbox allow limit is 0MB. Please see follow picture. How ...
0
votes
0answers
38 views

Custom Setting read and write access

I have a lightning component in a Beta Managed Package that uses a Custom Setting to define in which unit a value is shown. When using the component, the user has the option to click on a button that ...
0
votes
0answers
24 views

Accessing custom settings from managed package global class

We have global class in managed package so users can create a visualforce page and refer that global class we exposed. from that visualforce page global class we are trying to access the protected ...
1
vote
1answer
44 views

Managed Package - Protected Custom Setting for storing creds - Security review

I have created a managed package where I used a protected Custom Setting of hierarchy type to store some user credentials. I am concerned about security review of the app. Is there any chances of ...
0
votes
2answers
20 views

Arranging Custom Fields in Custom Settings

Is it possible to arrange custom fields in a custom settings object? I have an object in custom settings (MyCustomSettings__c) and I'm creating custom fields. I'd like these to be arranged in specific ...
0
votes
1answer
31 views

Issue accessing Custom Setting when instantiating Batch Class

I'm having issues returning values in a Custom setting (Type = List) when I'm instantiating a batch class, and I'm not sure why. I'm doing an upsert in my test class and confirming via system debug ...
0
votes
0answers
24 views

Custom Settings on Custom Button link

I have a custom button link and I want its URL to be dynamic. I am trying to utilize either custom settings/metadata to store the url but whenever I do this, I am getting "This page isn't ...
1
vote
0answers
41 views

Is our “Identity Server” a Good Use Case for Named Credentials and if so, how should I use Named Credentials Instead?

We have a collection of microservices hosted on Azure. In order to access these, we must first get a token from what's been described as the "identity server". I can use this code to get the ...
1
vote
0answers
21 views

Is there a way to hide Custom Settings and Metadata Types to Profiles? [duplicate]

Is there a way to hide Custom Settings and Metadata Types to Profiles? Thank you in advance! :)
4
votes
1answer
250 views

DX CLI - Custom Settings

I've not found conclusive answers around DX and deploying/retrieving custom settings in a sandbox or production org. I did see this: DX Orgs and Custom Settings But that post is over a year old at ...
0
votes
1answer
31 views

Unit Test - When one Test Method called another Test Method within the same class

I have a scenario in which i am not sure how to write Unit Tests, Please assist me on this. Public class FilePreview{ public static fileClass getFilefromAWS(String str){ //Logic for ...
0
votes
1answer
21 views

How to update existing records on change custom setting field value?

I have a trigger on the Account object and custom setting. I am comparing the account object's "Account Potential" field with the custom setting's "slab Maximum" and "Slab ...
0
votes
1answer
39 views

Autonumber with custom setting

I have a custom setting to numerate the opps by year. When an opp is insert, it fires a trigger that call to the method 'renombrarOppEmpresa'. I look for the record of the custom setting per year, I ...
2
votes
0answers
90 views

How can I detect in Apex code that a user has or doesn't have access to the custom setting?

I have created a new Custom Setting Test__c and enabled feature Restrict access to custom settings in Schema Settings. Now I expect that a code in user context (Anonymous Execution Window) would ...
0
votes
1answer
137 views

List View based on current logged in user criteria

I am creating an app where there should be a list view of users of that org. I have created a custom object which looks up to the User object. Based on some criteria of the current logged in user for ...
0
votes
0answers
32 views

How to manage Custom Setting data from Community at user level

I have Created one custom setting with email digest feature which sends a mail to user through batch classes as per record value stored For Ex- If Internal user stores as Email Digest Daily then he ...
0
votes
0answers
66 views

Custom Setting vs. Custom Object vs. Custom Metadata Type for Multiple Environment Credentials [duplicate]

I am looking to confirm the best practice of storing client / secret credentials for multiple environments for multiple external webservices within salesforce. Below is the analysis I have done ...
3
votes
1answer
361 views

Securely Storing Oauth Credentials for Apex Callouts

I am again trying to understand what is the best possible option to securely making the apex callouts from a trigger to external application which supports OAuth2. I am not building any application/...
3
votes
0answers
30 views

How to make existing custom setting searchable?

I have one custom setting in our org which is not searchable, as verified by confirming that searchable = FALSE when viewing the object info via Workbench. Dozens of other custom settings in our org ...
1
vote
1answer
95 views

“Internal Salesforce.com Error” in Apex called by LWC, but only for non-sysadmin users

I have this class, which is used by a VisualForce page for a couple of years. It accesses a custom setting named Data_kwaliteit__c: public class MainPageController { ... private Data_kwaliteit__c ...
0
votes
0answers
36 views

Lightning Component Reading Checkbox from Custom Settings

I've created a Checkbox in a Custom Settings object so my Lightning component can perform an action, but I'm unsure how to actually read the checkbox in Lightning. My Apex class is calling the ...
3
votes
0answers
61 views

How to use the Feature Management App (FMA) to grant access for a defined number of users?

The FMA allows named booleans, integers and dates to be set by the creator of a managed package so they can turn package features on and off per customer. The boolean option is pretty obvious: every ...
0
votes
1answer
62 views

how to run apexcode with diff user context

please share your idea's my salesforce org integrated with serviceNow system middle ware is snapLogic . I created one api user in salesforce (i.e Integration User). when record inserted in servicenow,...
1
vote
1answer
215 views

Cannot find “Custom Settings” in Org Browser (Visual Studio Code, SFDX) [duplicate]

I creating a Custom Setting in a sandbox, called Global Settings (Global_Settings__c). I am trying to pull the Custom Setting into my SFDX project via Visual Studio Code, but "Custom Settings" does ...
0
votes
1answer
20 views

How meta data looks like after the custom setting definition added to profile?

We enabled this to dev org. I am trying to add 'XXXX' custom setting to admin profile. I am trying to pull profile metadata using workbech. I am unable to see any new changes regarding this salesforce ...
0
votes
1answer
17 views

How can I enable the permission within SetUp tab, to give access to an user to write a comment into a Case

I created a case and I want another user to be able to comment on it, but when he tries to do it a notification shows up saying that he does not have the permissions to do it. What is the permission ...
0
votes
1answer
36 views

Custom settings in tests if it's trigger

I have a trigger with custom settings and test for it. And I have an example how to test it right: @IsTest void testWithSettings() { Example_Settings__c exampleSettings = Settings.getExample(); ...
2
votes
2answers
966 views

How to retrieve Custom Settings from Sandbox to a local SFDX Project?

I want to know how to retrieve Custom Settings from my Sandbox into a local sfdx project. I know command force:source:retrieve but I do not know what parameter to use for retrieving Custom Settings. I ...
1
vote
3answers
46 views

The custom setting parameter in unit tests is NULL

I'm getting null in my code here, while running a unit test, but in Execute Anonimous Window there is a right value in System.debug(). What the hell? Maybe I should run the test as System ...
1
vote
1answer
166 views

What is the use of “View All Custom Settings”?

Due to Spring 2020, we now have this new setting 'View All Custom Settings' in the profile. As I understand it, if this is not checked, then users of that profile will not be able to access any Custom ...
0
votes
1answer
207 views

Is it possible to increase the length of Name field in Custom Setting

I am passing dynamic values to the getValues() method so I didn't have control of what is being entered, whenever name string crosses 38 characters its giving "Custom Setting Name too long" error. So,...
0
votes
0answers
52 views

How to add access for custom settings with protected visibility in 'Enabled Custom Setting Definitions Access'?

I have a managed package with custom settings and one custom setting has a protected visibility since we are storing my user's API key and secret key. We have users who have users who don't want to ...
0
votes
1answer
45 views

How to add permissions for custom settings/metadata for managed package

I have a managed package that are using custom metadata and custom settings and I want to use permission sets so we can control the access permission of these custom metadata and custom settings. I ...
0
votes
1answer
60 views

Unable to set default custom settings

I have written an apex class which makes a callout to an external API, and the endpoints need to be different for the sandbox and production. I need functionality like environmental variables so the ...
0
votes
2answers
166 views

How to provide MetaData access for Spring '20 programatically?

I am new to profiles and permission sets. I have identified a list of metadata that I would need to give access to for certain profiles. Please see: https://help.salesforce.com/articleView?id=...
10
votes
1answer
273 views

$Setup cannot resolve protected setting in managed package after Spring 2020

A custom button in a managed package uses a protected custom setting in the same package to retrieve a namespace: /apex/{!$Setup.Constants.URL_Namespace__c}PageName?param=value When installed with ...

1
2 3 4 5
10