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
13 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
30 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
40 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
17 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
31 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
35 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
36 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
40 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
23 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
26 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
48 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
32 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
20 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
60 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
23 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
46 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
46 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
23 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
42 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
51 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
41 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
58 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
45 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
38 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
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
74 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
33 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
77 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
44 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
29 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
52 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
53 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
23 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
67 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
24 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
183 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 read-...
0
votes
0answers
32 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
116 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
139 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 case,...