Questions tagged [customsetting]

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.

Filter by
Sorted by
Tagged with
13
votes
3answers
27k views

Retrieving Values from Custom Settings

I have created a Custom Settings 'Tal_Source_Map__c' which has 4 fields. SF_Source_Type__c SF_Source_Sub_Type__c Tal_Source_Type__c Tal_Source_Type__c Combination of SF_Source_Type__c and ...
5
votes
2answers
10k views

Deploying custom setting using ant

I was looking at this doc : http://www.salesforce.com/us/developer/docs/daas/salesforce_migration_guide.pdf I am preparing a ant manifest for migration and cannot find custom setting in the doc, I ...
6
votes
2answers
1k views

Custom Settings in Managed Package limits

So I have a use case where I will have many custom settings and each custom setting has many fields so easily getting in several MB of custom settings data. If I put this into a managed package where ...
3
votes
2answers
385 views

InstallHandler - Problem Creating Custom Settings

I am trying to Creating Custom Settings record on insert using InstallHandler. global class CVFC_InstallClass implements InstallHandler { global void onInstall(InstallContext CMLeadSetting) { ...
-1
votes
2answers
454 views

insertions of record automatically while installing

I have created a product which contain a custom setting. In the custom setting it contain a record. I have the product as package and installed it into an new env but after installation the user need ...
4
votes
1answer
79 views

Updating UI Settings with a Managed Package

I'm wondering if it's possible to update standard UI settings with a Managed Package? I've created a package dependent on some key settings, so I'd like a Trigger that will look at whether or not ...
28
votes
2answers
36k views

How to get Custom Settings in Apex Test code?

I have a custom setting used by a visual force page to load error messages based on a code value. In my test code for the page I have this statement Integer howMany = Message__c.getAll().values()....
1
vote
2answers
980 views

Timezone in datetime field in Custom Setting

I have a custom setting of List type and it has got a field of datetime. When I create record for the custom setting and provide value to it. Does salesforce store it as it is without converting it to ...
6
votes
4answers
619 views

Alternatives to using page action for user preferences

Sometimes you have to load user preferences stored in a Hierarchy custom setting when a Visualforce page loads. If the preferences exist, then retrieve them, otherwise create them and insert them. ...
18
votes
1answer
15k views

Custom setting List vs Hierarchy

What is the difference between Custom Setting Type "List" and "Hierachy"?
4
votes
2answers
13k views

GetInstance vs GetValues (Custom Setting)

Are GetInstance and GetValues methods of custom setting same? According to the documentation here http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_custom_settings.htm ...
1
vote
1answer
3k views

Accessing custom settings in Email templates

Is it possibble to access the custom settings in Email Templates directly? (I know I can refer the custom settings in formula, and then refer this formula field in the email template) I am facing an ...
5
votes
3answers
514 views

Is the most common use case for custom settings lost in managed packages?

Background Public custom settings included as part of a managed package can be maintained by users of the target org if they have the Customize Application permission, which seems somewhat heavy ...
4
votes
2answers
2k views

How to close a case as duplicate or merge a case

I need the option to Merge cases, Has anyone done something similar for Merge cases? I prefer to avoid Apex - but I don't think I have an option here really.
25
votes
2answers
4k views

Generating a guaranteed contiguous series of numbers

I am looking at a solution to providing a guaranteed contiguous sequence of numbers. This cannot be achieved via autonumber fields as numbers in the series are consumed by failed validations etc. - ...
10
votes
2answers
3k views

If it doesn't exist auto-create Organization level Custom Settings in my APEX code

We have created a hierarchy custom setting to store some data instead of hard-coding it into our managed package. Had I known that SF only auto-deploys the setting itself and NOT an Organization ...
13
votes
2answers
13k views

How to access custom settings in test class without using the seealldata?

I want to use a custom settings inside a test class, without using the SeeAllData=true What are the options I have? How can I accomplish it with a reasonable solution?
13
votes
3answers
3k views

Unable to insert new records into “hierarchy” type Custom Setting

**Update Oct 23 2013: The fix to Known Issue W-1890544 is now being rolled out to sandboxes. I just verified by creating a brand new sandbox and I'm now able to insert new records into "Hierarchy" ...
6
votes
3answers
5k views

Combine Custom settings with Custom Labels

Is there a way to combine custom settings with custom labels ? So that the output from a setting value would be a custom label ? To explain: In example, we have an international organisation, and ...
2
votes
3answers
683 views

Custom Setting or Custom Object for App settings when providing a “List” of data

I'm building an app that will display three sets of information based on the value of a pick list. It'll display the Definition of the value, a list of activities (Text not objects) to complete and a ...