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.

learn more… | top users | synonyms

0
votes
1answer
19 views

Unable to deploy managed package because lightning component can't see Custom Settings

I have created a managed package which contains a lighting component which uses a Custom hierarchy Settings object. You can see here that the Settings object is packaged. It is referenced within ...
4
votes
2answers
52 views

How to show Columns of Visualforce Page Based on Custom Settings Fields?

So I got my Visualforce Page to display a table with columns (e.g. Version, Date, Type, etc.) as well as values from a dataset for each corresponding column of the next rows. I'm trying to integrate ...
0
votes
2answers
40 views

How to store more than 255 characters in a custom settings field?

In an apex class I have a custom pick list whose values are displayed depending on profile. But now I want to remove the hard-coded profile names being used in the code. For that I am creating a ...
1
vote
1answer
27 views

How to use fields API name's value computed by a formula field

I have a formula field which returns me a field's api name. I want to use that api name for further computation by retrieving the value stored in that field. The field whose api name is computed by ...
0
votes
2answers
23 views

Regarding Lookup Filters in salesforce

what is the use of lookup filter in salesforce? when we will use lookup filter for object creation or custom Field creation, what the Lookup filter settings do in Salesforce? Anyone Share the Answer?
0
votes
1answer
39 views

Compiled Formula is too big : Also does not work under Workflow criteria

Formula to compute the value of Office__c is as follows. CASE( Account__r.Office__c , "Americas","Americas", "EMEA","EMEA", "China", "China", "Hongkong", "Hongkong", "Taiwan", "Taiwan", "Korea", "...
0
votes
1answer
42 views

Automate Custom Settings

I have made a method in my main class for custom settings public static List<Color_Coding__c> colorCoding { get { if (colorCoding == null) { colorCoding = ...
1
vote
1answer
26 views

How to Access a Hierarchy Custom Setting from Lightning Component

In Apex we can do Hiearchy_Custom_Setting__c.getInstance().Field__c In Visualforce we can do $Setup.Hiearchy_Custom_Setting__c.Field__c Is there any equivalent way to access easily from a ...
2
votes
2answers
42 views

Custom Setting in Validation Rule

Does anyone know how I can use a custom setting list in a validation rule? We have a custom setting list that contains State and Country names and abbreviations. I would like to set up a validation ...
0
votes
1answer
17 views

Can we set permission for Custom Setting object for Different Profile

Actually we don't want to show some details to other profile user. I have researched solution for this problem but didn't find a answers for this question.
1
vote
0answers
23 views

Custom setting (Hierarchical) is not working for formula field.

I have a Formula field 'Alert' on my CASE object that should display an image (Warning) when 'Year/Model' field on CASE object is equal to 5 particular values (2001/Accord, 2002/Accord, 2001/CIVIC, ...
2
votes
1answer
17 views

protected and public custom settings

I would like to understand the difference between protected and public visibility on custom settings. I know a managed package custom setting is protected and cannot be accessed everywhere from the ...
3
votes
1answer
28 views

restrict access to custom settings

Can we restrict access to the custom settings based on profile? If I want to restrict some users from creating data in custom settings, how can I do this?
0
votes
1answer
25 views

Send Email notification First time date is created or date changed

Send Email notification First time date is created or when that particular date changed , date comes from external system to salesforce opportunity object. I Created a workflow rule with Ischanged(...
1
vote
3answers
33 views

Can protected custom settings be edited by the API?

I'm preparing a managed package however I would like to store some protected custom settings that the user cannot see (access keys, and the like). I'd like These settings to be populated once the user ...
4
votes
1answer
51 views

How to store sensitive data in Salesforce (for AppExchange package)?

I am developing AppExchange package, it contains integration with third-party webservice. I store credentials to this webservice in custom settings. After security review I received an email with ...
0
votes
1answer
20 views

Edit Custom Metadata Records from a Managed Package

Custom metadata records seem to be great mechanism to store application configuration details, as unlike Custom objects or Custom settings, custom metadata records can be packaged with a managed ...
0
votes
2answers
32 views

custom setting coverage in test class

how to cover custom setting in test class and how to get getInstance(UserInfo.getProfileId()) this is my class code Content_Pro_Content_Type_Profile_Options__c contentProProfilesetup = ...
1
vote
1answer
36 views

Merge field stored in custom setting

Is it possible to store a merge field like {!Account.Name} as a custom setting, then reference the custom setting on a VisualForce page that uses the standard controller?
2
votes
2answers
41 views

Use custom setting to exclude Accounts created on certain date in validation rule

I have a number of validation rules on Accounts, and now I want to exclude all accounts that have been created before 2014. Instead of entering the date criteria into every validation rule, I was ...
2
votes
1answer
46 views

Importing Custom Setting Records

I am attempting to migrate a custom setting record from one sandbox org to another. I have successfully exported the custom setting record (~150 fields) from org1 to a .csv file. When importing into ...
1
vote
1answer
27 views

How to use Custom Links in VFP or Controller

I have created Custom Linksso that I can use either in Visualforce page or apex controller but I'm trying to figure out how to call this custom links?
0
votes
1answer
30 views

Updating custom settings fields from XML

Is it possible with Mavensmate to update fields from the XML on a custom settings object? I updated the .object file and in Mavensmate hit deploy to server. It seems that Salesforce did not to apply ...
4
votes
1answer
51 views

Visualforce Tab Access?

Background I have a List Custom Setting which I want to expose to a few managers. However, I do not want to give them Customize Application permission, so I created a Visualforce Page that enables ...
-1
votes
1answer
33 views

Custom setting value in test class [closed]

When i am running a test class values from customsetting is always comming false.Although it is true. I am not able to figure out the exact reason for that. Please advice
1
vote
1answer
23 views

how to specify dynamic query field values to custom setting fields?

I have a dynamic query which has the where condition like this: ' WHERE (Contract_State__c=\''+'Complete Activated'+'\''+'OR Contract_State__c=\''+'Partially Terminated'+'\''+')'+' AND ...
1
vote
1answer
24 views

Regarding Custom settings in salesforce

why formula fields are working only in Hierarchy custom settings,not in list custom settings what is the Difference between list custom settings and Hierarchy custom Settings
0
votes
0answers
24 views

Custom setting checbox always giving false in production

I have trigger on which i am trying to control on\off through customsetting. I have using Boolean toRunTrigger = Trigger_Run_Logic__c.getInstance().RunClassObjectTrigger__c* This was givning right ...
1
vote
1answer
67 views

how to retrieve fields of custom setting in apex controller?

hi guys i have added custom setting "Taxes" and in that i have 10 different fields as taxes names. now i have to list down that taxes names in select list in visual force page. so now how to retrieve ...
1
vote
1answer
26 views

Use Global Variable $Setup in Lookup Filter

Since global variables can not be used in Filter criteria, I created a formula field, to pass it through. But referencing this formula (with global variable) in a Lookup Filter does not work Custom ...
0
votes
2answers
48 views

How to use a list custom setting in an APEX trigger to validate content?

I have been working on an APEX trigger to validate routing numbers on the Lead object. The initial code is as follows: trigger RoutingNumberValidation on Lead (before update) { for(Lead AllLeads:...
1
vote
1answer
48 views

What is the best possible way to Activate/Inactivate a trigger in production without any deployment?

I have many triggers in my org which needs to be deactivated for few reasons during deployment. I was going through google and found at few places that this can be done with the help of 'Hierarchy ...
3
votes
2answers
24 views

How to store settings information for user?

I need for my application to be able to store simple settings like Display Name, Localization, Color scheme etc for the users as key:value string pairs. A lot of the examples online suggest just ...
3
votes
1answer
45 views

Using custom setting value in SOQL query

I'm having difficulty in creating a SOQL query using a custom setting value. select count (0) from custom_object__c where date_field__c > custom_setting__c.date__c Returning error "Bind ...
0
votes
1answer
25 views

Granting access for admin's to view customsettings object?

We have created a managed package and a custom link for inserting data's into the customsetting object and since the object is in "protected" format,its not even visible to the admin who installs it....
1
vote
2answers
61 views

How do you configure Field Level Security for Custom settings in managed package?

I can't seem to find this configuration in the User Profile settings.
0
votes
0answers
27 views

Issue with Custom settings space

My sandbox says the below message when i open custom settings. "You are currently using 0 MB of custom settings data in your organization, out of an allowed limit of 0 MB". And I cannot save any ...
2
votes
0answers
48 views

SOSL Query against Custom setting object

I am experiencing some inconsistent behavior. On one org - I'm doing a SOSL (Search Query) against a custom setting and it works fine. But on a different org - I get entity type My_Custom_Setting__c ...
3
votes
1answer
73 views

Assigning values for the custom setting object using visualforce page?

I am trying to insert values to the field in custom settings via visual force page Page: <apex:page controller="sample" sidebar="false" > <apex:form > <apex:pageblock > ...
0
votes
1answer
19 views

Get a number from a custom setting and display it on the visualforce page.

I have a custom setting with one profile assigned to it and that's Heathrow portal. It has a field called Largest Number and a value assigned to it. I need to display that number on a visualforce page ...
3
votes
1answer
46 views

custom setting error when test classes run in parallel

I have a few test classes that fail but only when all the test classes are run in parallel.I'm using a hierarchy custom setting as part of the test code. In order to narrow down the problem I have the ...
3
votes
1answer
39 views

Custom Setting in VfP - PE

I'm trying to create a PDF which should give out the value of a specific custom setting. Tried this with very little hope, it won't render: <apex:repeat var="muster" value="{!$Setup.Musterhaus__c}"...
0
votes
1answer
10 views

How to map the encrypted values which are coming from the external system with custom setting values in salesforce?

I have custom setting"CountryCodeMapping__c" to map the country values which has 2 fields, Salesforce_CoutryValue__c ExtSystem_CountryValue__c This custom setting has used in Apex class where ...
7
votes
1answer
48 views

Pattern to abstract simple code to work on multiple records by using Custom Settings

Background: I want to add all users who are assigned a specific permission set to a specific chatter group. I have a simple version of this working, but would like to abstract this to use a list ...
0
votes
1answer
96 views

How to check if my OwnerId exists on the List Custom settings in apex

I have a List custom setting as ReferrerUpdateExempt__c which has one field UserID__c i have a list of UserIds in this setting. I want to check in a trigger if a new Opportunity owner exists in this ...
0
votes
0answers
16 views

what is pse_resource__GeoLocationSettings__c in salesforce

while running the test class i am getting the error(Methods defined as TestMethod do not support Web service callouts). After i placed something code like pse_resource__GeoLocationSettings__c ...
3
votes
1answer
39 views

Hierarchy Custom Setting Test Class Issue

I'm using a Hierarchy Custom Setting field in a validation rule but want my trigger to be able to override the validation rule whenever it runs. I have modified my trigger/helper class to set my ...
0
votes
1answer
18 views

Will the empty value get nullified in text area?

I have entered empty value in one of the fields in custom settings (by jus pressing space in the text area field). But when I check in my page , it is showing "null" instead of showing empty value (" "...
2
votes
1answer
81 views

State of the Art to leverage Permission (Set)s in ISV applications

Now that we have Permission Sets and Custom Permissions in Salesforce ISVs could package fine-grained permission structures with their applications. As always with great power comes great ...
0
votes
1answer
46 views

NullPointerException when running unit test

I have a class that I have been running without any issues. I've created a test class to get a bit of code coverage for it and the test is failing when the constructor is called. Without going into ...