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

-1
votes
1answer
28 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
15 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
18 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
46 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
15 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
42 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 ...
1
vote
1answer
40 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
22 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
37 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
23 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 ...
1
vote
2answers
35 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
26 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
35 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
44 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
38 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
34 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" ...
0
votes
1answer
9 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
47 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
48 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
14 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
25 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
73 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
32 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 ...
1
vote
0answers
24 views

List Custom Setting retrieval failing - getValues() + getInstance() both return null. Thoughts?

I've been using Custom Settings for a while, and now I'm running into situations where I don't see the results coming back - this setting is one of the first I created, to turn code on & off, ...
0
votes
1answer
43 views

Using custom metadata types for storing app information

I want to store app information like license type, number of guests users, license based app restrictions etc. I am looking for the following features along with this. This information should be ...
0
votes
1answer
21 views

What privileges for custom settings access to users?

I've a complex mobile app which we've generalised using custom settings. There are certain fields that I want to make available to users who're not system admins. Is there a way I can do that without ...
3
votes
0answers
49 views

External API credential storage and retrieval

I'm integrating with a third party API and need to store the (application-wide) credentials in Salesforce. The API requires a token for authentication, which is generated by using a username and ...
1
vote
1answer
25 views

Make a custom setting to check for getting data from different websites

I have developed an application in which I am getting data from a website using its API and storing it in salesforce. Now I want to add some more websites as options by using checkboxes. If I select ...
0
votes
1answer
21 views

Use Custom Setting URL in Outbound Message

Can I direct the url on an Outbound Message to a url in Custom Setting? If so, how?
0
votes
1answer
53 views

Custom Setting of Custom Metadata in Managed Package

I am deploying a Managed Package with a few APEX Triggers in it. Each organization that installs the Managed Package should be able to determine which Triggers run so I need a way to provide a ...
0
votes
1answer
22 views

List Custom Setting for Selected Value

I want to particular value from Custom Setting. When i Click on Checkbox i want that Custom setting Value only.Custom Setting is List Type <apex:page Controller="ServiceTableCtrl" sidebar="false" ...
3
votes
3answers
146 views

Calling .put on Map of Custom Settings cause 'Collection is read only' Apex error

I create a map of Custom Settings and then try to add a new one to it. But it throws the error AssignByLeadSource: execution of BeforeInsert caused by: System.FinalException: Collection is ...
0
votes
0answers
28 views

SOQL query to get greatest value from unique ID or Custom Setting

trying to figure out the best way to increment a uniqueID value by 1 when leads are inserted into our org. Our externally required uniqueID is formatted as follows XX-YYYYY, where XX has values of ...
0
votes
1answer
98 views

Problem with custom setting URL field from a custom button within the app

Uploaded a managed package and now have a problem utilizing the Custom Setting feature. Trying to allow the users to change url's that I reference in the app by calling a Custom Setting URL field ...
1
vote
0answers
49 views

Overcome translation Workbench drawback [closed]

I have requirement where I have Polish language to do double translation. Like say if User Language is Polish and User Profile 'A', I need to show my custom object 'X' as 'Y'. When User language is ...
0
votes
1answer
113 views

additional last 3 digits of Id obtained from SOQL query

This is a follow up from my last request - use custom settings for setting Status field of different Case Record Type Use case - I have a piece of code, which will look at record type of current ...
0
votes
3answers
85 views

use custom settings for setting Status field of different Case Record Type

I am basically fishing for ideas here. I am a beginner, so i have a crude way of accomplishing task, but i would appreciate if someone experienced can provide some better ides. Task - I have a custom ...
0
votes
1answer
36 views

What is the best way to retrieve profiles from a Salesforce org?

PS: There are other questions with the same subject line, but the question is different. Please don't mark it as duplicate. It seems to retrieve the entire profile definition, we need to retrieve ...
3
votes
1answer
353 views

Test Class : Compile Error: Method does not exist or incorrect signature

I have attempted to write my first test apex class, and although it looks correct when i try and save i get the following error "Method does not exist or incorrect signature: getPolicy() at line ...
4
votes
1answer
71 views

Custom Settings difference between Object Name and Api Name?

Can someone explain me what is the difference between object name and api name for custom setting. The doc says for object name : Name used when the custom setting is referenced by formula fields, ...
2
votes
1answer
62 views

Custom Settings as environment variable?

We would like to avoid to hardcode values in an apex class and use "environment variable". Is the use of custom settings the right way to do that? Today I created a custom settings containing two ...
2
votes
2answers
195 views

Incompatible element type Set<String> for collection of String

I need to retrieve a set of Record Type Names from a list Custom Setting WEID__c so that I can check that the list includes an Opportunity's Record Type Name, before updating the Opportunity in my ...
2
votes
2answers
289 views

Data Loader Custom Settings

I am trying to export Custom Settings through data Loader, but I can not see Custom Settings in the list of objects. Does data loader support exporting custom settings or not?
2
votes
1answer
710 views

How to create Hierarchy custom settings in Apex

I need to create Hierarchy custom settings in my test class to avoid the seeAllDate = TRUE Little confused on how to create Hierarchy custom settings. Looked at the docs and other questions but don't ...
1
vote
1answer
46 views

Options to save external oauth tokens in salesforce

Feels like a general question, but thought to put in discussion. Need to connect to an external system from salesforce and Oauth flow is ok. First though to store access_token, refresh_token, etc. in ...
5
votes
2answers
164 views

How to differentiate LIST apart from HIERARCHY setting in Apex?

My Apex code needs to dynamically reflect on user-defined Custom Settings. But the user could use a List or Hierarchy depending on their needs, so I need to be a bit careful manipulating each type. ...
0
votes
1answer
64 views

question related custom settings

My scenario is 'I have custom field the data type is formula ,i need to fill the field using data stored in custom settings',now my question how to get the custom settings values ?.