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
0answers
12 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
15 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
17 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
70 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
19 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
18 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
27 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
18 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
40 views

External API credential storage and retreival

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
24 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
19 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
28 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
21 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
91 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
25 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
54 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
43 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
81 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
70 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
33 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
253 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
62 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
55 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
159 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
118 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
320 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
36 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
149 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
54 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 ?.
2
votes
2answers
50 views

Base Class or Interface for Custom Settings

Is exist Interface or Base class for Custom setting? I tried use SObject class, but it does not support Custom Settings Methods. For any SObject we can use SObject class, that base class for standard ...
0
votes
1answer
53 views

Automatically Update the custom check box field based on Owner/ Owner profile and permission set

For new account, automatically Update the custom check-box field to true for User-xx or Account Owner profile-xx and permission set-xx. Need to implement this Without Code. By using custom settings, ...
1
vote
1answer
76 views

Workflow and Hierarchical Custom Setting

If a Hierarchical Custom Setting is used as part of a Workflow Rule, does the workflow access the User version (assuming the user had a custom setting) or the System/Organizational version?
2
votes
1answer
81 views

Setting record CurrencyIsoCode from Flow using Custom Setting picklist

I'm trying to implement Cloud4Good's guide to setting picklist values in Flows, based on a Custom Setting list. I've created the CS list, naming each record to match the standard picklist values GBP ...
4
votes
4answers
60 views

Automating the deployment of custom settings through CI process

We have inherited some code from another development team, and the code (triggers especially) requires custom settings to execute. We have put the code into a continuous integration process, using ...
2
votes
2answers
537 views

Hierarchy Custom Setting .getInstance() Id

What's the best way to get the Id of the custom setting referenced in MyCustomSetting__c.getInstance() for a hierarchical custom setting? I'm trying to update your current instance of a custom ...
1
vote
3answers
692 views

Fetching Record Type Name / Id values from Custom Settings - best practise

I need to check that the Record Type of the record whose change caused my trigger to fire is listed in a Custom Setting WEID__c. Until now I have been been using trigger WE_MRFv2 on Opportunity ...
1
vote
1answer
109 views

Is this a bug in the process builder or I am I missing any thing

I noticed the following error in the Process builder which I was expecting when reffering to the custom setting the syntax should look like this ...
-1
votes
2answers
41 views

Replicate trigger code for various SObjects

I have a requirement where I need same trigger code to fire after update on seven custom objects. Only the object name on trigger code would change. Is there any way that I can put the whole trigger ...
5
votes
2answers
462 views

Custom Settings - Visibility Protected - Managed Package

I have a requirement to create a protected (visibility) custom setting which will be part of managed released package, now in the next release we need to make the visibility to public. I know there ...
3
votes
1answer
208 views

upsert on Custom Setting

I've got a page that inserts/updates a custom setting record. I'm using upsert for this purpose but I've run into an error: There is already an item in this list with the name ...
2
votes
2answers
252 views

How can I use a VisualForce page to set a custom setting field?

I'm trying to create a VisualForce configuration page for my managed package. I have a hierarchal custom setting field for an authentication key which is needed to access a remote service. I can read ...
1
vote
2answers
66 views

Custom settings field error

Although I am having this field in my custom settings it shows Error : Variable does not exist. Please find below code snippet. Can someone let me know what could be the reason? Code Snippet: ...
2
votes
1answer
194 views

Using existing Setup Objects in Test Class - Mixed DML Operation error

I'm writing a Test Class in order to test some code which automatically completes CaseMilestones when certain changes are made to a Case. My code checks that the Case which has been changed has a ...
2
votes
1answer
87 views

custom setting SOQL vs methods

i often come across scenarios where we have some custom setting with lots of fields created which has rows for multiple purposes. So for a specific scenario, it is often needed to filter all the rows ...
2
votes
2answers
52 views

How do Internal User manages Custom Setting data without 'Customize Application' Permission?

We have created Vf page to manage custom setting data , its working well for system admin but when we logged in as internal user it throws this error :system.security.NoAccessException: Create access ...
1
vote
0answers
114 views

Create Public custom settings via REST API

First, is it possible to create a custom object without using Metadata SOAP API ? As per my reading until now it is not possible. I know for a fact, one can create ApexTrigger using REST API. Since I ...
0
votes
1answer
19 views

Add shortcut to custom settings

Is there a way to create a shortcut or quick access button to custom settings in salesforce? I want sales team to easily add new values or remove existing without going into setup, but custom object ...
1
vote
2answers
34 views

Hierarchical custom setting

I would like to know about some real world examples of hierarchical custom setting.
30
votes
2answers
2k views

What is the difference between Custom Settings and Custom Metadata Types

Summer '15 is going to include the GA release of Custom Metadata Types. See Introducing custom metadata types: the app configuration engine for Force.com Are Custom Metadata Types intended as a ...
5
votes
2answers
54 views

Codes and Values

We have clients that use a lot of codes in their day to day activity. Eg: Take a look at the UK Government Common Basic Dataset: ...