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
0
votes
2answers
52 views

How to set a variable in my assignment rule

What I am trying to achieve is create a universal variable in salesforce which I can access in my assignment rule. I will set that variable to some value through UI. Assignment rule will check if ...
5
votes
1answer
742 views

What is API name of 'Location' field in hierarchy custom setting or how to get it in code?

I want to fetch type of hierarchy setting(profile OR User), compare it and do some logic. For that I am using setupOwner.Type in SOQL query as: SELECT SetupOwner.Name,SetupOwner.Type,SetupOwnerId, ...
3
votes
1answer
171 views

Populate a field in custom setting when Sandbox is created

I have a custom setting present in production which consist of username and other related user details. Now, every time I create a new Sandbox I have to manually go and edit the custom setting in ...
1
vote
1answer
309 views

How to get all hierarchy settings for all users in an org into apex code?

Is there any way to get ALL records of hierarchy custom settings for ALL Users/profiles in apex code and display it as a list on a custom page(lightning component) along with the user/profile names? ...
1
vote
1answer
364 views

Problems overriding NEW-button for Contact in Standard Controller Action

I'm quite new in Salesforce and I'm having some difficulties. I'm creating a VF page in order to override the NEW button for CONTACT for certain profiles. I've already done it for the EDIT button and ...
2
votes
2answers
1k views

How to Upsert Hierarchy Custom Settings While Testing?

I'm trying to update custom settings in my class using the following: public static CustSettings__c settings; public static void updateSettings(){ settings = CustSettings__c.getInstance(); ...
1
vote
1answer
286 views

Attempt to dereference a null object - get the value of a custom setting

I try to access the value of a custom setting : this custom setting contains only one field Nombre__cand the name of the custom setting is Limit__c. In apex I try to get the field Nombre__c : ...
1
vote
1answer
276 views

Visualforce not loading iframe after update

I had/have a Visualforce page that displays an iframe that points to another page within my organization. It points to the page that renders an email template (like https://prodorg--c.na17.content....
1
vote
1answer
29 views

How to identify and redirect correct callback in managed pack containing connected app

Our applications has different domain subdomain for each. Lets say our domain is *.example.com We have client1.example.com client2.example.com so on so forth We want to package connected app. ...
1
vote
2answers
421 views

List type custom settings error

public with sharing class CustomSettingsListController { public String selectedStage {get;set;} public List<selectOption> leadStages { get { List<selectOption> options = ...
2
votes
2answers
59 views

Populate Custom setting data after the installation of Managed App

Could you kindly let me know if its possible to populate the protected custom setting data after installing the managed package. Custom setting is also part of our managed package. So we would like ...
0
votes
1answer
589 views

Create relationship between custom object and custom setting

Why I can't create relationship between custom object and custom setting. When try to create lookup field in my custom object, custom settings are not listed in available objects.
0
votes
2answers
662 views

How to reset custom settings cache?

I have a hierarchy type custom setting with org level defaults and no user or profile override values. I have changed the org level value for one field, but in my APEX tests, the code still retrieves ...
0
votes
0answers
27 views

Is there a way to get Site.com custom property in Lightning code?

Is there a way to get Site.com custom property in Lightning code? Right now I am using custom property for every community (that reflects one site) but wondered if these could be moved to Site.com ...
0
votes
0answers
20 views

How to access the custom setting value [duplicate]

I have trigger Code: Trigger AutoEmailsending on Order (after update) { Map<Id,Order> Orderdetail = new Map<Id,Order>(); Set<Id> Accountid = new Set<Id>(); for(...
0
votes
2answers
193 views

Custom Settings and fields

I have created the custom setting with the hierarchy type I have added some fields to the custom settings phone field is added to the custom settings custom setting Name:Order_Configuration__c ...
0
votes
1answer
25 views

How to get list of fields that are shown in a particular view of that object in apex?

I have a list custom setting which has 4-5 views and each view has different set of fields that are shown. I want to get these set of fields per view something like: List= CustomSetting....
1
vote
1answer
1k views

How to pass LIST custom setting list(array) from client side to server side controller in lightning?

I have created an array of list custom setting in JS controller of lightning component. When I call apex controller method and pass this array, inside controller its value comes as empty. However, ...
2
votes
2answers
1k views

System.NullPointerException: Argument 1 cannot be null

I have a controller and I wrote a test class for it, the test class is giving me the error message I mentioned in the Title. This is the controller: public with sharing class OpenedAccountsController ...
4
votes
2answers
2k views

How to insert list custom setting entry from a lightning component?

I want to insert a record of custom setting of type List through Lightninng component using form/any other input UI.In doing so through form and using UIInputText, when I am using following markup to ...
0
votes
1answer
878 views

How can I get field names List for a custom setting

I want a list of field names (List of Strings) for a custom setting, something like we get in Schema.DescribeFieldResult. Any suggestion how to do it?
1
vote
0answers
546 views

How to display views of list custom settings in lightning component as it is?

I have a custom setting , say ListCustomSetting__c and 5 views are defined for it in salesforce org. I want to build a lightning commponent which will have a dropdown showing these 5 views , and on ...
4
votes
0answers
566 views

Is there any way to deploy list views for custom settings through Metadata API?

Currently trying to deploy a list view created for custom settings through the 'Manage' button through the Metadata API. <?xml version="1.0" encoding="UTF-8"?> <CustomObject xmlns="http://...
8
votes
4answers
4k views

Custom MetaData Types reference in Formula Field

I have a custom metadata type and a field in it with a value. I am creating a formula field on an object(TestObject) where I would like to reference a value from the above custom metadata type into ...
1
vote
1answer
347 views

How to retrieve custom setting using javascript remote object

In apex, normally we can consider retrieving info from a custom setting just like an object using query. But the simpler way remain the use of the getInstance method. But I want to use javascript ...
0
votes
1answer
30 views

Something's sending out emails but I can't find out what

I have a repeating issue that something is sending out e-mails and I can't figure out what. The e-mail contains a simple notification with a Link to a task created. I have confirmed from the logs ...
0
votes
1answer
66 views

Custom Setting field type issue. Multi line text?

I have a custom setting field of Text type. I ran out of 255 characters which salesforce provides. How to add multi line text ?
0
votes
1answer
4k views

Get all values of custom settings object

I am not able to retrieve all values from custom settings object.My custom settings object API name is Products_ID_Without_AOP__c.It has a custom field as Products_ID__c with name and value like below....
0
votes
2answers
590 views

how to update checkbox fields value using Map in Apex

List<Result__c> rs=[SELECT FieldName__c,Id,Name,Type__c FROM Result__c where Type__c='Checkbox']; Opportunity CurrentOpportunity=[Select Id,Checkbox1__c,CheckBox2__c,Checkbox3__c from ...
2
votes
2answers
742 views

Using Custom Settings in Apex Trigger to Call Different Values for Sandbox/Production

I have an Apex Trigger for a Salesforce integration that looks like this in the Sandbox environment: trigger Trigger_5074086a_493f_48d2_a8fd on Opportunity (after insert, after update, after delete, ...
0
votes
0answers
17 views

object that doesn't show up on list of… objects

I have this object called DateTimeSetter: Label DateTimeSetter Object Name DateTimeSetter API Name DateTimeSetter__c Setting Type Hierarchy Visibility Public Description (blank) Namespace Prefix (...
-3
votes
1answer
151 views

Custom Settings in salesforce [closed]

What is the use of Custom settings in salesforce,I have created the Custom setting in Hiearchy type and add a new Custom field Called Account1,After that where i have to use this Custom setting,How to ...
0
votes
1answer
151 views

Custom setting behaviour in getValues

i report this issue happened to me while handling with custom setting. CSV__c is a custom setting, where are stored the configurations of some CSV files that the system has to process. The custom ...
0
votes
1answer
307 views

Retrieve data from Custom settings

Is there a way to retrieve data from custom settings using getAll() on the name of the custom setting that is passed dynamically? Eg : If I pass CS1__c as custom setting name -> it should give data of ...
0
votes
1answer
1k views

custom setting in Apex Trigger [closed]

I have one custom setting country name and capital. I have created a one trigger which will set the description(capital) based on country_Information picklist. trigger FetchCapitalUsingCustomsett on ...
1
vote
1answer
1k views

Accessing List Custom Settings in JavaScript custom button

Basically this question is answered in many blogs but none of them serves my purpose. I can see contradictory statements as well, whether or not a List Custom setting be accessed from a custom button ...
3
votes
1answer
117 views

Apex example code to create, get and update user settings?

<Long intro that can be skipped> I have a VFP that displays output from a standard controller. It's a very simple setup with nothing particularly difficult in it however it does allow the user ...
1
vote
1answer
26 views

List Custom Setting with getInstance() inconsistent based on API Version

I've been looking at some older code and trying to figure out why it works. They have something like this: List_Custom_Setting__c settings = List_Custom_Setting__c.getInstance(); The API doc does ...
2
votes
2answers
972 views

How can we get custom setting field value in home page component?

I was created a home page component and its type is link. Also created a custom link . I want to access one of the field of custom setting in my custom link is it possible..? My custom link Behavior ...
0
votes
3answers
170 views

How to use custom settings rather than query multiple time from an object

public class FCPAanswersSendanEmailClass { public static void sendEmailToAuthor(Map<id,List<Question_Answer__c>> sendingMap , Map<id,Question_Answer__c> oldValues){ for(id aid : ...
0
votes
2answers
415 views

Unable to deploy managed package because lightning component can't see Custom Settings

I have created a managed package which contains a Lightning Component which uses a Custom hierarchy Settings object. You can see here that the Settings object is packaged. It is referenced within ...
4
votes
2answers
766 views

How to show Columns of Visualforce Page Based on Custom Settings Fields?

So I got my Visualforce Page to display a table with columns (e.g. Version, Date, Type, etc.) as well as values from a dataset for each corresponding column of the next rows. I'm trying to integrate ...
0
votes
2answers
1k views

How to store more than 255 characters in a custom settings field?

In an apex class I have a custom pick list whose values are displayed depending on profile. But now I want to remove the hard-coded profile names being used in the code. For that I am creating a ...
1
vote
2answers
148 views

How to use fields API name's value computed by a formula field

I have a formula field which returns me a field's api name. I want to use that api name for further computation by retrieving the value stored in that field. The field whose api name is computed by ...
0
votes
2answers
51 views

Regarding Lookup Filters in salesforce

what is the use of lookup filter in salesforce? when we will use lookup filter for object creation or custom Field creation, what the Lookup filter settings do in Salesforce? Anyone Share the Answer?
0
votes
2answers
53 views

Compiled Formula is too big : Also does not work under Workflow criteria

Formula to compute the value of Office__c is as follows. CASE( Account__r.Office__c , "Americas","Americas", "EMEA","EMEA", "China", "China", "Hongkong", "Hongkong", "Taiwan", "Taiwan", "Korea", "...
0
votes
1answer
93 views

Automate Custom Settings

I have made a method in my main class for custom settings public static List<Color_Coding__c> colorCoding { get { if (colorCoding == null) { colorCoding = ...
5
votes
2answers
7k views

How to Access a Hierarchy Custom Setting from Lightning Component

In Apex we can do Hiearchy_Custom_Setting__c.getInstance().Field__c In Visualforce we can do $Setup.Hiearchy_Custom_Setting__c.Field__c Is there any equivalent way to access easily from a ...
2
votes
1answer
693 views

Custom Setting in Validation Rule

Does anyone know how I can use a custom setting list in a validation rule? We have a custom setting list that contains State and Country names and abbreviations. I would like to set up a validation ...
3
votes
2answers
702 views

Can we set permission for Custom Setting object for Different Profile

Actually we don't want to show some details to other profile user. I have researched solution for this problem but didn't find a answers for this question.