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
vote
1answer
17 views

Custom Settings creation through Apex without SetupOwnerId property

Is it important to specify SetupOwnerId in order to insert only defaults in managed package settings.SetupOwnerId = UserInfo.GetOrganizationId(); Is the custom settings created for current user or ...
2
votes
2answers
48 views

Validation rule for the data entered in custom settings is available?

Currently i am creating custom settings to store some configuration values. But, i wrongly entered some data in that and the data is invalid. Is there any mechanism like validation rule kind of thing ...
0
votes
2answers
16 views

Custom Settings data is not added to package. Any thoughts?

i have created few custom settings and loaded them with data and i added the custom setting to an unmanagaed package. While deploying the package in another org i saw the custom settings did not have ...
2
votes
1answer
28 views

Pop up message from custom setting

I have created a custom object and on the object i have created a custom button. when click on the button it send an email. And a pop up comes with a message "you have send an email". Now i have ...
1
vote
1answer
36 views

Using custom setting variable directly in a SOQL statement (System.QueryException: No such column xx entity)

I want to use custom setting in direct soql statement, but it turns out not working. Because of the requirement, I can't add another field in that object. The only thing I can do is to use Custom ...
3
votes
1answer
60 views

Custom Settings GetOrgDefaults with Professional Edition

So I have code along the lines of the following inside a managed package, and in one client org it's causing a null dereference exception. double d = 100; d *= ...
0
votes
0answers
69 views

Custom Settings into an Existing Multi Select Picklist in Visualforce

How to add list custom settings into an existing multi select picklist in visualforce? VF Page <apex:selectList value="{!selectedValue}" size="1" multiselect="false"> ...
1
vote
2answers
74 views

Outbound Message Endpoint URL Issue

I have a production salesforce instance sending outbound message to production Endpoint URL. However, upon sandbox refresh, the outbound message will be copied to sandbox, which results in outbound ...
5
votes
1answer
73 views

Custom Settings are NO SObjects - How to use them polymorphic?

My app uses different types of custom settings. Let's call them SettingA__c and SettingC_c. I want a method that handles both types of settings polymorphically. private void handle(SObject setting) ...
0
votes
1answer
95 views

Regarding VF page to custom settings

Req: I have a command button on VF page. When i click on it then a popup window needs to open (That can be achievable). When we add to some values those need to get saved into custom settings and ...
3
votes
1answer
55 views

Generic SObject Getters Return Null for Boolean fields?

Question Am I taking crazy pills are is it unexpected behavior for the generic sObject getters to return null for boolean fields? Background Was troubleshooting a null pointer error and noticed ...
2
votes
1answer
60 views

Workaround on 5000 character limit on formula field without writing a trigger

Does anyone know a workaround of the 5000 character limit on a formula field without having to create a trigger? I am trying to get the country ISO codes using a case statement but I'm hitting the ...
3
votes
1answer
24 views

Using Custom Setting to create navbar, how do I sort correctly?

I have created a custom setting, navbar, which has 1 custom field, URL (data type URL). In this field I have 5 elements that link to apex pages (Home, chatter, cases, etc) but it could go down to 3 or ...
5
votes
2answers
76 views

Giving users access to a specific custom setting without granting them Customize Application access

I'm working on a VF page to give some users access to certain custom settings without given them the entire Customize Application access. Is there anyway to edit and commit data into the system as an ...
5
votes
1answer
97 views

Does custom setting count against the total number of custom objects available for your organization?

The Salesforce documentationhas below line Custom settings are a type of custom object. Each custom setting counts against the total number of custom objects available for your organization. ...
8
votes
2answers
138 views

Are Custom Settings included in a Database.rollback()?

Apex has a Transaction Control system for rolling back changes to SObjects. Are Custom Settings included in a rollback? (To be more clear, are Custom Settings reverted to the state that they were in ...
5
votes
2answers
252 views

Visualforce: Displaying more than 20 records from a Custom Setting

I'm having issues with displaying more than 20 records from a Custom Setting on my visualforce page. I've tried using apex:repeat, apex:pageblocktable, apex:datatable with no luck. Best, Eric ...
2
votes
1answer
37 views

Triggers on CustomSettings/RecordTypes

Is it possible to create a work flow or trigger on changes in a custom setting or a record type? The problem I'd like to address is that I have a custom setting that maps some Account record types to ...
1
vote
1answer
51 views

Can Protected Custom Settings be CRUD'ed via the REST API? (Created, Read, Updated, and Deleted)

Can a protected custom setting be created, read, updated, and deleted from the REST API? Is it the same REST API that is used for SObjects?
4
votes
1answer
76 views

Can a trigger be attached to a Custom Setting?

I know triggers can be added to SObjects. Can the be added to Custom Settings as well? If so, then what would the apex look like?
2
votes
2answers
85 views

I want to assign my custom setting to my custom profile users?

I have my custom setting object Setting type Hierarchy and visibility Public. with 1 text type field and I want to give access to my custom profiles users. U have assigned the permission to my ...
4
votes
2answers
201 views

How to store a treeview in Visualforce to Database?

I have created a treeview in Visualforce Page. User can reorder the tree structure. Order of any level can be changed or the level itself can be changed using javascript. Now I need to have this ...
1
vote
2answers
207 views

Can we control the VisualForce Tab Visibility using custom settings

Can we control the VisualForce Tab Visibility using custom settings? Actually my use case is like, i have to create a VisualForce tab and need to control its visibility using custom setting so that i ...
8
votes
1answer
549 views

Populating Custom Settings field using Apex

I'm trying to populate/set/put/initialize a custom setting's field with a calculated value within my apex code. The field type is number. Is there a way to do this?
2
votes
1answer
68 views

Dynamic invocation (or emulation) of the hierarchy custom setting getInstance() method

I have a requirement to avoid any compile-time dependency on a managed package. Dynamic SOQL, SObjectType and SObject allow me to do this cleanly for normal objects. But now I need to access a public ...
2
votes
2answers
430 views

Custom Setting GetInstance method returns null

I am currently having an issue with my custom settings returning null values when they should, to the best of my knowledge, return a value. The following code in Anonymous Apex: ...
8
votes
1answer
246 views

Custom Setting is null in test method even though I set a value

I want to update the Opportunity stage depending on a status field on the account. I have a validation rule that makes a date field on the opportunity mandatory for some stages. This validation rule ...
0
votes
2answers
175 views

What is difference between custom setting and custom object?

I familiar with custom object but what about custom setting?
3
votes
1answer
638 views

How can I build a complex Visualforce Dynamic Binding dynamically?

How can I build a complex Visualforce Dynamic Binding dynamically? Yeah, I realize the question seems a bit redundant, but I couldn't think of a better way to describe what I'm trying to do. The short ...
16
votes
2answers
255 views

Why are Custom Settings lookups not counted against SOQL Query limits?

Custom setting documentation says "All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database" so does this mean ...
7
votes
2answers
208 views

Checkbox on related list

Does anyone know how to add the checkbox column on related list in SF? I have a custom object that I'm try to get checkboxes for related list. Thanks
0
votes
0answers
100 views

Custom setting to show checkboxes

2 Objects :- Account And Products with 1:m relationship Account Fields:- Account Name,Account Country (Picklist) Product Fields:- Product Name(Multiselect Picklist), Product Description Account ...
3
votes
1answer
115 views

picklist in Custom Settings Alternative

i am using custom Settings and one field is of type Picklist. one option is to choose a text field and put a validation on this field if user enter this value then its accepted else not .any better ...
2
votes
2answers
208 views

NPSP trigger npe01.IndividualAccounts failing in sandbox

NPSP trigger npe01.IndividualAccounts failing with the following error: Apex trigger npe01.IndividualAccounts caused an unexpected exception, contact your administrator: ...
2
votes
2answers
447 views

To add a list to an instance of another list

anyone have any idea of how to a one list to an instance of another list .. public List<WarrantyServices__c> GetResponse(){ if(tnPSResponse != NULL) { ...
3
votes
2answers
131 views

ADDING TWO LISTS

I have two custom settings WSList and PList in a single method . I want to add these two lists i.e., under WSList , Plist should come as a related List . i am writing this code in utility class but ...
1
vote
1answer
429 views

Convert Any Salesforce unknown Attribute from Custom Object to String for HTML params

I am integrating Salesforce with my third party app and we both need to share a common mapping attribute for Account Object. These are the steps I follow: I created a Custom Setting called ...
2
votes
3answers
230 views

Multi-value CustomSettings field

My package has a CustomSetting object that contains all the configuration values needed to power my application. I would like to add a field that contains all "open" lead statuses, configurable by ...
2
votes
2answers
101 views

How To Check If CustomSetting OrgDefault is empty?

Documentation Custom Settings Methods says: getOrgDefaults(): If no custom setting data is defined for the organization, this method returns an empty custom setting object. How to check ...
1
vote
1answer
495 views

How to get the Custom settings list?

I want to get all of the custom settings in a list and then according to the custom setting i want to build a query? Can someone suggest how i can do that. For eg: i have a custom setting as A1, ...
11
votes
2answers
320 views

Internal Server Error Accessing Org-Default Custom Setting In Test Method - Problem With Currency Values

This is driving me slightly crazy. I have a hierarchy type custom setting which has a currency field. Inside a trigger I do the following: Global_Settings__c gs = ...
1
vote
1answer
176 views

Custom Settings - suitable for use to stop long-running Batch?

Can a long-running Batch use a Custom Setting's value as an indicator as to whether or not it should continue to process records? I have a batch that will process a few thousand records that could ...
2
votes
2answers
172 views

If I use a Protected Custom Setting - where to I wire in the VF Page to maintain it?

We wish to use a protected custom setting to store authentication data for a remote service we are calling. This fits with Salesforce's security guidelines. We will have to provide a Visual Force Page ...
3
votes
1answer
213 views

Custom Object record Post Options should be same as Chatter post feeds options Like for a Group or to my followers

With chatter Feed we can share the post to the created group. In my criteria, I need the same kind of procedure ( Options same as Chatter feed : To my Followers , A Group) that should be available in ...
1
vote
1answer
792 views

Obtaining a value from a custom setting

I have a protected custom setting that I am querying. I have the following statement: App_name_c key = App_name_c.getValues('secret'); When I run this in the console it works. However, when I run ...
2
votes
0answers
156 views

Data in custom protected settings and its visibility

I have a protected custom setting in a managed package, and I have a custom field within that custom setting that holds a secret key that I'd like to obtain and use to authenticate users in some code ...
1
vote
1answer
128 views

How to add a protected custom setting to a Managed Package

I have a managed package that I've created, I would like to add another custom settings object into there. However, this object is no where to be seen when I click on the add button. Any help is ...
0
votes
2answers
126 views

Getting value of CustomSetting in batch class

I have created on custom setting whose API name is "testCustom__c" In that custom setting i have created one text area field whose API name is "FieldsToSearch__c". Now i have added one data set into ...
0
votes
1answer
1k views

Test class with custom setting

I' have written a trigger on lead, very simple. I'am using the custom setting for the first tine to avoid hard coding or query to get ids. I haven't experience testing custom setting. I have a ...
0
votes
1answer
600 views

Cancel button on VF page

I am developing a VF page to allow changes into a custom setting. And this page is set as a visualforce tab. I need a way to set up the cancel button such that it would take the user back to previous ...