Stack Exchange Network

Stack Exchange network consists of 175 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
64 views

Retrieving Values from Custom Settings based on 2 field combination and how to retrieve in trigger

I have 4 fields on my custom setting record type name, record type id status send email notification type Now i have to create a new record based on the case status and status combination like ...
3
votes
1answer
14 views

How to I add hierarchical custom setting for Automated Process user?

Given a hierarchical custom setting and a desire to include an entry for User = Automated Process, when I use the UI, I get this error:
0
votes
1answer
14 views

Dynamically switch community login url between enviornments using apex

I need to send an email using apex that contains a link for the email recipient to login to a specific community. I'd like this link to change between my sandboxes and production. What appears to me ...
0
votes
1answer
11 views

i am displaying account fields using vf .according to profile fields should be display?

Based on profiles fields should be display like system admin can see all the account fields other profiles will see limited fields how can solve this by using custom settings?
0
votes
0answers
20 views

how to use .getvalues with map and display the picklist value from custom setting on VF page thoghing null pointer exception [duplicate]

have a custom setting called product and under that i created two fields called and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting ...
0
votes
0answers
28 views

SOSL Returning 0 Results For Custom Setting Objects

We have been using SOSL to query a list of countries defined as a custom setting which was working fine until recently. I have also tried SOSL on other custom setting objects and getting 0 results as ...
0
votes
2answers
44 views

custom setting not displying correct picklist values based on the condtion

i have a custom setting called product and under that i created two fields called and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting ...
0
votes
0answers
18 views

how to display picklist values which is stored in custom settings values based on the condition [duplicate]

` public List getTR_ProductList() { system.debug('******Start of getTR_ProductList'); List options = new List(); options.add(new SelectOption('','--Select--')); Map Prod = ...
0
votes
1answer
19 views

Compare Lead Statecode field to Custom setting Statecode and update a field on Lead with the Region

I have a custom setting name "StateAbbreviationsInfo" which has fields of Statecode__c and Region__C. The requirement is to create a batch class and check for the lead statecode and find the ...
1
vote
2answers
40 views

How do I able to change custom setting values from test class to actual class

I found a problem that couldn't change custom setting values through test code To prevent recursive call, in the middle of context put switch code like below (trigger only runs when custom setting ...
1
vote
2answers
151 views

Would Refreshing a Sandbox Wipe Out Certain Metadata?

If I have custom-setting metadata (or any other custom objects) in a partial-copy sandbox and not in production, then I refresh the sandbox, will that metadata be wiped out and have to be recreated? ...
0
votes
1answer
54 views

pad block corrupted apex Crypto

I am facing an issue while decryption of value which is stored in custom setting. When i encrypt and decrypt value at same time then i that error is not thrown, if i get the value from custom setting, ...
0
votes
1answer
17 views

Want to fetch field from AggregateQuery

I created a Custom Settings and add some records in it. On the basis of that value i write an aggregate query and i want to store that field value in String. // List to fetch all records from ...
2
votes
1answer
59 views

Best way to save a API integration password

I am building an integration between Salesforce and other application with REST API calls. The Salesforce will be consuming data from that other app on in interval. I am writing my code and it is ...
1
vote
1answer
15 views

custom settings to set event reminder

I'm trying to put (-60) value in the reminder time. it works but it is hard coded. I want it from custom settings so admins could edit the numbers from the GUI. trigger setReminderEvent on Event (...
0
votes
1answer
16 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
16 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
35 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
29 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
131 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
67 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
27 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();...
4
votes
1answer
845 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
1answer
231 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
19 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
26 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
104 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
88 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
117 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
47 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
28 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
52 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
34 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
140 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
38 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
69 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
70 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
31 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
535 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
57 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
30 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
80 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
262 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
49 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
28 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
313 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
26 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
262 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
62 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
848 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 ...