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

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.

0
votes
1answer
12 views

Hierarchy getInstance() method in VF Page

Is it possible to use Hierachy custom setting getInstance(userId) method in VF Page? I am trying to use below syntax but it is giving an error (Syntax error) {!$Setup.customSetting__c.getValues(...
0
votes
1answer
15 views

How to use custom Setting values as a picklist in the VF page!

Scenario : As per the business requirement there will be a Picklist values in the VF page from which user can transform the Whole page in his preferred language. Please let me know if we can handle ...
0
votes
1answer
30 views

Apex Custom Settings Question

I have read the developer guide and not sure what I am doing wrong. I am executing the following code: public class LTRORequireAdditionalDocumentsCon { public LTRO_Document__c ltrodoc {get;set;} ...
-3
votes
1answer
22 views

How to compare list custom setting records with other list of lead?

How to compare list custom setting records with other list of lead? //this list store the list of lead records List<Lead> leaddetails=new List<Lead> leaddetails(); //This custom setting ...
1
vote
0answers
47 views

Alternative to custom settings in salesforce

I have a problem statement where I need to store a list of some 40 Parent Objects Ids statically. Further, if any one of the Parent Object's child records goes higher then 45,000(which is calculated ...
0
votes
2answers
25 views

Can I delete Custom Settings in Managed package salesforce?

Is there a way to delete custom settings, We are changing the custom setting to a custom object with the same API name but it was not an issue in UAT and Development Org. But seems couldn't delete the ...
0
votes
1answer
24 views

creating records with values of custom setting

I have created one custom setting(name,number fields) with list type and i have added some 4-5 records with different values. Now when i create any record on Account object i need to create records ...
0
votes
1answer
26 views

Need Help with a custom Setting

i have a custom setting with a field type "checkbox" set to true but if i try to query it on a class it's allways returning false, i don't know why. Email_Engine__c ee = Email_Engine__c.getInstance();...
3
votes
1answer
211 views

Eliminate query on Custom metadata type?

I'm trying to use Custom metadata type to replace a List type Custom settings. I have to access the Custom metadata type information in multipe apex classes and triggers. When I use custom settings, ...
0
votes
0answers
63 views

Permission Needed to Edit Custom Metadata Records

I have a user whose profile does not have Author Apex and CustomizeApplication. Neither do the user have these permissions from any Permission Set. Yet they are able to edit Custom Metadata Type ...
0
votes
1answer
26 views

Custom Setting providing NULL value

I created a Custom Setting to store an Id so I do not have to hard-code it. The custom setting API name is SQUAD_GLOBAL_VALUE_SET_ID__c and is of type 'Hierarchy'. It has 1 field called Squad Picklist ...
0
votes
1answer
18 views

Store data on custom setting fields

I am looking to store few fields in custom object with fixed values for http request authentication. I see that I can use Custom setting Fields to do that. However, I am not getting an idea how can I ...
1
vote
1answer
25 views

Custom Settings and Rounding in Formulas

I have some formulas that use values stored in custom settings. For example If(X < custom setting-y && x >= custom setting , 'foo', 'bar') My formula seems to be fine and my custom ...
1
vote
2answers
92 views

Can ISNULL be used with custom settings in formula?

I want to evaluate a workflow rule based on a custom setting value. The custom setting can be null so I want to check for isNULL before fetching the value of the custom settings field. This is the ...
4
votes
0answers
51 views

Datetime field default `now()` causes “value not of required type” error?

Per this answer, and everything I know about Salesforce formulas, if I want the default value of a datetime field to be the current time, I should be able to use the formula now(). In this case, the ...
2
votes
2answers
45 views

Are Custom Labels Cached?

There was a requirement to store some key value pairs that will be frequently accessed and the current setup is that is being stored in custom labels. I was wondering if there is any evidence of ...
0
votes
1answer
24 views

Custom Settings in test classes for Lookup fields(ID)

I have a custom setting where I store Id's for my dock records. (Dock__c) In my test class after "creating" the custom setting and my other records, how can I reference the custom setting to match my ...
0
votes
1answer
23 views

Run schedule after saving custom setting's data. Is it possible?

I am having difficulties in custom settings. Is it possible that I can run a schedule after saving the client's credentials? I am using custom settings and the type is hierarchy. Am i gonna create ...
0
votes
1answer
32 views

Assigning Custom Setting value to Custom object Field

/***********Custom setting **********/ Map<string, CountryCO__c> codes = CountryCO__c.getAll(); string pb; list<string> pb1=new list<string>(); for (...
1
vote
0answers
29 views

Duplicate Values Error with Visualforce Form

I am trying to create a Visualforce page / form that displays certain custom settings are subject to frequent change and allow the admin to update the values. I wrote the first section but I get a ...
0
votes
1answer
29 views

how to get all the fields of a custom setting in soql?

I want to access all the fields of a custom setting via soql? any ideas how to do it.
1
vote
1answer
32 views

Custom setting permissions- Standard User

Created a Custom setting to store the Values and Deleting setting records as well based on User's selection, everything was perfect until We logged In with the Standard platform License, We couldn't ...
3
votes
2answers
62 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
53 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
29 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
273 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
37 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
26 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
64 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
153 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
38 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
219 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
24 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
111 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
51 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
516 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
77 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
220 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
21 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
25 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
396 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
83 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
26 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
96 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
2
votes
1answer
335 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 ...