Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

2
votes
2answers
45 views

Validate if a custom object or custom settings is used anywhere

Which is the best possible way to check if a custom object or custom settings is used anywhere in the project? We are doing a cleanup task of deleting custom objects/custom settings.
3
votes
2answers
36 views

Replacing hard coded messages inside Lightning JS controller

I have existing code which contains upto 20 hard coded messages(info, error etc.) inside my lightning JS controller. I am confused whether to use custom labels or custom settings as part of code ...
0
votes
1answer
27 views

Compare field to large list within Salesforce

I have a large list of email domains that I would like to use for comparisons within some apex code (for example, does the Contact's email domain name exist in this list). What is the best practice ...
1
vote
2answers
169 views

Why do we disable validation rules and triggers while Data loads via loader

I'm trying to understand why do we disable validation rules and triggers while loading data via data loader or other tool. If we not disable, what will happen in the system level?
-1
votes
2answers
24 views

Custom settings and Governor limits

Can we write a SOQL query on the custom object?are the actions on the Custom settings are countered against Governor limits?
0
votes
1answer
21 views

How to add custom filter in salesforce views

I have created a custom object in my org and showing a custom list view for that object. Salesforce provides filter option but it contains 2-3 steps, so I want to add a drop-down to filter the results ...
0
votes
1answer
38 views

Check to hide Custom Setting's data through Apex

We are using angular for front-end and Salesforce is being used for maintaining database. REST APIs have been written on Salesforce to communicate and fetch data to front-end. A custom profile has ...
0
votes
1answer
80 views

Custom Setting returns null in apex test

In a visual flow that is autolaunched on Opportunity creation. In it I have a lookup element to a custom setting that returns a string based on a date value. When I run this in the UI and create an ...
0
votes
1answer
28 views

Custom setting Enforcing Object and Field Permissions for custom profile

I have custom Setting (Hierarchy) Type with api name Test__c. in my custom setting I have one boolean field "View__c" I am using it in my custom apex controller and visual force page. In my visual ...
0
votes
0answers
24 views

Hiding Custom Setting data on front-end and through postman

We are using angular for front-end and Salesforce is being used for maintaining database. REST APIs have been written on Salesforce to communicate and fetch data to front-end. A custom profile has ...
1
vote
2answers
108 views

Conditionally Render field on page Layout based on Custom Setting

I want to only a show a checkbox field in a page layout if a custom setting is false. What would be the best way to do this? I would be much more comfortable editing a VF page. Is there a way to edit ...
0
votes
1answer
23 views

Set field accessibility of Custom Setting's field

Can we set field level security / field accessibility of a Custom Setting's field?
0
votes
2answers
51 views

Making custom settings data visible in test classes

I am trying to add custom settings data into my Test DataFactory so as to increase test coverage. I currently create data for custom settings in my test datafactory.This is both time consuming and ...
0
votes
1answer
42 views

Retrieving salesforce Custom Settings From marketing Cloud AMPSCRIPT

In Marketing Cloud I have a Cloud Page, I need to get some infos stored in a Custom Settings in Salesforce. Here is what I'm tryng to do: %%[ var @rs Set @rs= RetrieveSalesforceObjects('...
1
vote
1answer
169 views

How To Use List Custom Settings In Process Builder Criteria

I have List custom settings which I'm using within APEX to determine criteria I should use when building functionality. I have some workflows also however I know I can't use List Custom Settings ...
0
votes
1answer
23 views

Create a new Record on New object by comparing Queries

public class PartialMatchClassPurchased { public static List<Order_Line_Item__c> Partialmatch(List<Id> ids) { List<Commission__c> comm = new List<Commission__c>(); ...
0
votes
0answers
47 views

Apex crypto class to encrypt REST API

We are using angular for front-end and Salesforce is being used for maintaining database. REST APIs have been written on Salesforce to communicate and fetch data to front-end. A custom profile has ...
1
vote
1answer
88 views

Does lightning:recordEditForm support custom setting records?

I tried to use lightning:recordEditForm to create a new custom setting record but I received an error saying Error in fetching record or record metadata. [Unexpected Error when retrieving '...
0
votes
1answer
28 views

Custom Setting doesn't get saved after creating a package

I have some protected custom setting in my salesforce package and I created a VF page for modifying their values . When I test that it is working fine but after creating and installing the package , ...
0
votes
1answer
24 views

Update Data from Custom Settings on page layout

Could anyone please advise me on following questions: I would like to search Custom Settings Data Sets in Eclipse. Which metadata components do I need to add? I have added the Custom Object but I ...
0
votes
0answers
18 views

get the data of related custom object when related object is selected.

this is my message object. when i select message template object from drop down the text message field should directly show the message_template field from the selected template object. this is the ...
1
vote
1answer
20 views

Custom Setting for User Create Access Remove

In my org 4 users have the same profile and have all CRUD permission. My requirement is: I don't want to give create access to only one user with the help of custom setting, but I am not aware about ...
0
votes
0answers
21 views

User-specific settings page for managing boolean inputs 1:1 for each field in a dynamic describe of fields?

There is a managed app on the Appexchange and it solves a limitation by employing a "Track History" concept to give admins a boolean setting specific to each datafield on User object (for the purpose ...
-1
votes
2answers
113 views

Retrieve a record in custom settings without using SOQL query?

My question is how we retrieve a record in custom settings without using SOQl query?
1
vote
1answer
34 views

Change the name text type to auto number - custom setting

Is it possible to change the standard name field from text type to auto number in custom setting. Or it is possible to increase the text size of the name field in custom setting.
-1
votes
1answer
24 views

How to set render value of coloum in VF page on basic of custom setting values

I have custom setting( with ORG wide default as Profiles names like (system Admin, ReadOnly.) with comma delimted value. <apex:column headerValue="myValue" rendered="{$setup....
-2
votes
2answers
65 views

Fetch all custom settings

I have 10 custom settings in my org . I need to fetch all and need to use in apex class
1
vote
1answer
178 views

Google OAuth and UI - is is possible to pass back the authorization code not in the URL?

Is it possible to use Google OAuth and have no UI ever? My thought is: save the account credentials and refresh token into a custom setting and keep calling that every time. So the flow would look ...
1
vote
2answers
26 views

Accessing custom setting in Apex kills code

In an application I am reading configuration values from a custom setting. This custom setting has a data set with a few fields, like username, password, enabled, and a few more. ApiCredential__c is ...
0
votes
0answers
9 views

Existing Apex Trigger not fetching custom settings details while running new test class. [duplicate]

There is an existing trigger(say Trigger1) that retrieves custom settings information when a case is created. While running a new test class, i am facing errors with Trigger1 as it is unable to fetch ...
1
vote
1answer
67 views

Add Permission to Custom Setting

I added some custom settings for my Lightning Component to put some security related fields like APIKey and Username to be used for the rest API. As these fields can be different for each organization ...
1
vote
1answer
35 views

Where are the “manage” custom settings in the Metadata API?

I know that a custom setting is a custom object in the metadata api, but I can't find where the options you see when you press Manage are in the metadata API. I have a custom setting, let's call it ...
0
votes
2answers
108 views

Scope of Validation Rule Formulas with Custom Metadata Types features

I am looking for solution to enable formula reading for Custom Setting List.I know that for Custom Setting Hierarchy we able to read it from formula. The only work around is using trigger/apex to ...
1
vote
0answers
442 views

Can't create list custom settings (have they been deprecated?) [duplicate]

The option to select the "List" type on the new custom settings screen is not available (disabled and set to "Hierarchy.") I see a notification to use Custom Metadata types, however they will not work ...
-3
votes
1answer
102 views

Test.isrunningTest and (?:) meaning?

What does the below line of code mean? String ProcessStr =(!test.isRunningTest())? Customsetting__c.getInstance('Process').value__c:'0';
2
votes
0answers
20 views

Why can't I create a new list Cusom setting? [duplicate]

I'm working on a Partial copy sandbox with a standard System Administrator profile User. Why can I only create Hierarchy Custom settings? In production I can create list Type custom Settings with the ...
3
votes
2answers
2k views

Custom setting Setting type not visible

I am trying to create a new custom setting in salesforce but the Setting Type field is greyed out and fixed to Hierarchy. What could be the possible problem?
1
vote
1answer
50 views

Regex when set up in custom setting not working giving error

I have set up a regex to match couple of strings. When I use this regex in Apex class directly as string, it works correctly. However when i use the same regex from a custom Text field in Custom ...
1
vote
1answer
154 views

Custom settings and NamedCredentials update after sandbox refresh

I have some Custom Settings and Named credentials configured since I make call outs to external systems. But every time I refresh any of my sandbox, I have to manually update the Custom Settings and ...
1
vote
1answer
55 views

how to give permission for custom setting in permission set

Here is the issue, In DE org a managed package was created and it contains custom settings in which the value is added based on user choice (values are inserted). only issue is the user's profile is ...
0
votes
0answers
39 views

permission set for custom settings

Created a managed package and am assigning permission set level access(not profile level). In one of my components am querying custom settings, everything is fine and working good but custom settings ...
0
votes
0answers
115 views

Add new record into protected custom setting in a managed package

I've wrote a batch that upsert new record to a protected custom settings. The upsert is written at the postInstall script. Basically, it's something like : public static void setSetting(String ...
2
votes
1answer
49 views

Can FeatureManagement.changeProtection() be used to Protect any Custom Object?

Winter 18 introduced the FeatureManagement Apex Class, which contained a method which I was not expecting: changeProtection. According to the docs, changeProtection can be used to "Unprotect" objects ...
-1
votes
2answers
26 views

How to restrict access for different users? [duplicate]

Let's say, I am having 4 users : User1, User2, User3 and User4. All Users assigned with Same Profile. The Profile which is assigned to them having all access - Create, Read, Edit and Delete. But User1 ...
0
votes
1answer
61 views

Before Delete Test Class - Getting “De-reference Null Object error on other trigger”

I'm new to Apex and Code... A trigger from a managed package is causing my test class to fail. Here's the code for the trigger causing the error: trigger ...
0
votes
0answers
48 views

Clear Custom Settings Cache

Managed Package 1.0 has some custom settings which are of type protected hierarchical. I added new fields to existing custom settings but I am not able to retrieve the values. I am still getting old ...
0
votes
0answers
24 views

Custom Settings Upgrade Issue with Managed Release Package

I have protected Hierarchal custom setting object named SFGlobal having 5 fields initially and I created a managed release package with it say (version 1.0). Later when I added 2 more fields to the ...
2
votes
0answers
29 views

How to check from Apex code if custom setting is protected?

The question is simple: Is there any way to figure out from Apex code if custom settings is marked as protected or not? Looking through DescribeSObjectResult cannot find any single method related to ...
1
vote
1answer
56 views

Accessing Custom Settings via Apex VF class

I am trying to access custom settings via Apex, but it refuses to work properly. I've got the following two examples: public class PO_PartnerTeam_OppCustomController { public ...
0
votes
1answer
46 views

Can you use a string to getinstance of custom setting?

I am trying to get the values from a custom setting for more than one instance of the setting. If I replace 'placeholder' with shay or austin it works. list<string> names = new list<...