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
28 views

How can i get ticked checkbox only using custom setting?

I have crate controller using custom setting. I need to display only checked value only such as (Model,Option,Version,Volume) when I select the radio button. Please fine the below images ...
0
votes
1answer
17 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
19 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 ...
3
votes
2answers
75 views

How to determine LIST from HIERARCHY custom setting in Apex?

My Apex code needs to reflect on what will be a user-defined Custom Setting. 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
38 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
31 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
36 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
16 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
33 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 ...
3
votes
4answers
42 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
88 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
181 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
79 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
36 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
121 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
102 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
76 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
45 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
70 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
54 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
28 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 ...
0
votes
0answers
64 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
15 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
27 views

Hierarchical custom setting

I would like to know about some real world examples of hierarchical custom setting.
19
votes
1answer
440 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
52 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: ...
1
vote
1answer
126 views

query sObject or Custom setting by multiple fields

i need to implement logic at couple of places which is like querying an sObject or a custom setting. There are input fields using which i need to create filter criteria to reach appropriate records in ...
0
votes
1answer
28 views

When inserting a record with name which is already existing in record of custom setting, It gives an error that name already exist?

I have custom setting with three records there is four fields name, price, sales, active. I want to insert a new record with same name but different others field values.I have a VF page there is a ...
2
votes
4answers
132 views

Lead conversion unit tests throw errors for validation rules that use custom settings

I'm running into an odd issue with some of my unit tests & can't seem to find out what exactly is causing it the problem. Several of my unit tests revolve around converting a lead to an account ...
0
votes
2answers
131 views

Custom Settings values not being queried

I have a custom settings which has the following columns: Department || Sub Department || Employee || Serial Number My code is : for(CustomSettings__c cst: CustomSettings__c.getAll().values()) { ...
2
votes
1answer
86 views

Custom settings in subscriber's org not accessible by managed code

I am currently migrating to a managed package and I wish I could copy unmanaged [protected -- in case it matters] custom settings values to the managed ones in my post install script. However, I'm ...
1
vote
2answers
292 views

Null reference object trying to access custom setting in sandbox using APEX

I have created a Protected/List custom setting object in my org (not a managed package) It's Custom fields are: I created a dataset named: test with relevant values (I had another dataset with a ...
0
votes
2answers
117 views

Display Custom Setting from iterated value in Visualforce

I have a VF page & controller that is querying accounts and putting them into a list, and them displaying the fields Account Name, State,and Last Activity. I have a custom setting that is a list ...
1
vote
1answer
99 views

Record Type Id not being recognized when checked against value in List Custom Setting

I'm trying to check a custom setting, containing a list of Record Type Ids against the record type id of new opportunities that are being created. I only want the trigger to complete it's calculation, ...
4
votes
2answers
793 views

How do I access Custom Settings in Apex?

If I have a hierarchical custom setting: Custom_Page__c With one field: Url__c Using apex, how can I surface this field in a visualforce page? Can I just query it as if I was querying a custom ...
4
votes
1answer
181 views

Hitting governor limit while retrieving custom labels

In the current functionality, we retrieve custom labels from the source organization. The labels are retrieved from salesforce into another Salesforce organization. However, when retrieving the labels ...
0
votes
1answer
13 views

Translate Spanish characters to english [duplicate]

I have a custom object Address. Here in Line 1 (text) there Spanish characters are enterred. How to achieve a translator by a custom setting or any other way for data in salesforce? Can someone please ...
0
votes
1answer
155 views

Deploying the custom settings and accessing classes to Prod

I have a custom setting(list) with a custom field, which is accessed in the apex class in the sandbox. When I deploy the custom setting, custom field, apex class and test class to the Production, the ...
3
votes
1answer
916 views

Custom Setting issue in Test Class

I have written a pretty simple VF page that allows support users to add Case Assists (custom object related to Case) to their case. Pretty simple VF page, when opened, it creates a list of a wrapper ...
0
votes
1answer
152 views

Custom settings in one of the triggers

Currently we have a trigger on Account object which updates one field based on certain conditions and if that field value matches with another object where all the values are mentioned. One of the ...
1
vote
1answer
130 views

How do I dynamically reference a Record Type ID in a Custom Setting?

I am building an application that I hope to sell on the AppExchange. On that application, I am building three custom "new record" buttons on a related list (parent and child objects are both custom ...
0
votes
1answer
49 views

Accessing custom settings from a managed package using the Salesforce Platform license

Can we access (read, create, update and delete) custom settings from a managed package via Apex code? The person manipulating custom settings will be using Salesforce Platform license, not Salesforce ...
0
votes
0answers
19 views

SOQL vs getall() method [duplicate]

what is similar to SOQL query [SELECT name, customField__c FROM CustomSettings__c WHERE name = :account.name] for CustomSettings__c.getall().values(); method?
0
votes
1answer
232 views

How to automatically select a new record's picklist values based on the autocompletev2's form selecting a custom setting record?

I am using the autocompletev2 search box from blogforce9 to allow users to type a request and have the autocomplete show the closest options. Because autocompletev2 doesn't work with picklists, I had ...
0
votes
0answers
43 views

Urgent Issue on Custom Settings

I've a Custom Settings with Hierarchy, on that two fields Read__c, Unread__c. integer i=10; integer j=5; query1='select id,name,is_read__c, (select id from Attachments where createddate ...
0
votes
1answer
149 views

Access Custom Setting field value

I have a custom setting titled 'Authentication' and a field named 'token'. I need to access the value stored in 'token' in Apex, but I'm not sure how to do so. I'm aware of the get Instance() method, ...
0
votes
1answer
79 views

Approval Matrix using custom settings and its method

Could you help me with my method for my approval flow? I created a custom settings named Approver_Matrix . Here is a sample: Note: Private Account and Public Account fields were checkbox. For my ...
1
vote
2answers
98 views

How do you call a custom setting to open in a new window?

I have a visualforce page with custom buttons. Twas asked to add to the Custom Setting a field called ATLAS_ENDPOINT. I need to use this value to popup a new window with the link inside. VISUALFORCE ...
6
votes
2answers
431 views

Is encrypting passwords in protected custom settings a security requirement?

Regarding the Salesforce security review process, can anyone confirm (or deny) that storing a connection URL, username and password for a webservice utilized by an appexchange app can be done in plain ...
0
votes
1answer
244 views

Is there a way to initialize a custom setting in a test class?

My test class inserts test quote line items which sets off a trigger, that calls a Util class to pull a query of qli fields, 5 of which have their names stored in custom settings (I'm not 100% why ...