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
1answer
333 views

Picklist values different in UI From database

I can see different values for picklist field. Let say i have a field on Custom object Country__c which stores values like FR, CN, IN, US but in record new page or detail page i can see France, China, ...
0
votes
2answers
88 views

Editing protected custom settings in subscriber org

I use custom logging for my managed package and have a protected custom settings called logEnabled which acts as a switch to capture logs. I want to be able to use it a subscriber org to capture logs....
5
votes
2answers
3k views

Activate and Deactivate trigger using Custom Setting

I have an Apex class called ShippingAddressTriggerHandler and Trigger called ShippingAddress on object Shipping. I want to create a custom setting called SwitchTrigger with checkbox Activate. ...
1
vote
1answer
325 views

DML is NOT Recommended in APEX Property Setter

I just got a strange recommendation from SalesForce support which was related to inability of APEX controller class to save value from VisualForce component to a custom setting. The recommendation ...
1
vote
1answer
56 views

Good location to store single value (API Key) which will be used on mulitple Visualforce pages

I've multiple Visualforce pages using Google Map, till now I am not using any Google Map Javascript API Key key while referencing the Google Map script. <script type="text/javascript" src="https://...
0
votes
0answers
32 views

why my custom object count is differ from system overview count? [duplicate]

I am using below code to list all the custom object Integer count = 0; for ( Schema.SObjectType o : Schema.getGlobalDescribe().values() ) { Schema.DescribeSObjectResult objResult = o.getDescribe(...
0
votes
1answer
361 views

Accessing custom settings in Reports

I have a custom setting field which gets updates with the health of the process. I want to display this field in Reports to show whether the process is up and running. Is there a way I can expose this ...
3
votes
0answers
169 views

$Setup global merge field for checkbox hierarchy custom setting always returning false in Visualforce

I have a hierarchy custom setting with a checkbox field on it. The checkbox field defaults to false. When managing the custom setting only the Default Organization Level Values are defined. There ...
0
votes
1answer
235 views

How to call End point URL in List custom settings into salesforce

I have created URL(End point url) in custom settings object name 'History' to call end-point url in soap callout controller.How to call that url in apex controller.
1
vote
0answers
57 views

Custom Settings access through system mode?

I am unable edit the the custom settings in VF page. Since the access was not given in customize application. So I wrote a controller and ran in system mode. But still i am unable to edit the custom ...
0
votes
2answers
411 views

How to retrieve Profile name using typeof clause in SOQL for getting Hierarchy(User) type of custom settings

I want to retrieve name of Profile for which a hierarchy type of custom setting is defined. This custom setting is not organisation wide default, but is specific for a profile. I got to know recently ...
0
votes
2answers
67 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
844 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
197 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
363 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
409 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
324 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
294 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
30 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
503 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
60 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
727 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
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
224 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
911 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
601 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
595 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
5k 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
377 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
72 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
670 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
822 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
158 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
164 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
338 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
124 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
29 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
1k 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
238 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 : ...