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

Storing Sensitive Information in ISV App

In our managed package, we have a lightning page where the app admin can set a couple of settings related to the app, including an API key to interact with 3rd party system, and all this information ...
Hasan Tokul's user avatar
2 votes
1 answer
230 views

Create ContentDocumentLink after insert ContentDocument error

I have pretty simple requirement but I am facing error and I can't understand what is going wrong. I need to add ContentDocumentLink to add file to CollaborationGroup after insert with C permission. I ...
Maciej's user avatar
  • 45
1 vote
0 answers
210 views

Dynamically selecting external credentials with Named Credentials

We have a button that integrates with an external system using Named Credentials. We are using per-user authentication here and every user authenticates themselves with their external system username ...
salesforcets's user avatar
-1 votes
2 answers
70 views

Can we create report on custom setting in Salesforce?

Can we create report on custom setting in Salesforce? when i edit the object that is created for custom settings, it directs to the custom setting edit page, so i cannot edit and check 'enable report' ...
SFPR's user avatar
  • 1
-1 votes
1 answer
451 views

What is the major difference between Custom Setting and Custom Metadata?

I have gone through various articles for the difference between Custom Setting and Custom Metadata but I couldn't find the major difference why we should setting over metadata or metadata over setting....
Hira Khan's user avatar
0 votes
1 answer
271 views

Custom Settings - Unable to access or see custom setting in Flows

I created a Custom Setting with Visibility - Public & Type - List to reference in Flows. But I don't know why I can't find the value. I noticed other Custom Settings with Type - Hierarchy are ...
Pam's user avatar
  • 107
-1 votes
1 answer
193 views

LWC - How to populate component when the page just load

I'm using Custom Setting to remember what user set for that specific setting. So when the component load, it will fetch values from Custom Setting. (1)If there is no value => Column will generate ...
Pam's user avatar
  • 107
0 votes
1 answer
100 views

How to Change CreatedDate = LAST_N_DAYS:N in a query to a custom setting variable

I am trying to change a hard coded created date time range from a query to a custom setting. When applying the custom setting variable, the list return empty. Here is the original query: SELECT Id, ...
Aarón Henríquez's user avatar
1 vote
2 answers
202 views

Store settings and API credentials in packaged CMDT records

My current Managed Package supports a single GPT API and covers that with multiple packaged components: Protected Custom Setting for secure storage of API credentials (Named Creds don't work) Custom ...
Robert Sösemann's user avatar
0 votes
1 answer
35 views

I want to add number 7 as setting so that we won't need to update it with code change. Can we add this in Global settings? If yes, how? pls check code

So I have a formula field to check number of due days and I am checking that in my apex controller in 'if condition', if it is less than 7 or not. However, I have a requirement to make changes so -- &...
SF Learner's user avatar
0 votes
0 answers
38 views

Magento 2 automatic token saving

I would need to reduce the token return calls of Magento 2 from this class. I would have already thought that I could perform this by going to save and history the token within a custom setting. and ...
Toris's user avatar
  • 17
-1 votes
3 answers
359 views

How to use Custom Setting variable in LAST_N_DAYS

I am trying to write a SOQL query which uses the Custom Settings. Basically, trying to query all the records of a Custom Object of the last 30 days. I am trying to use a custom setting Number_Days__c ...
Accredo2442's user avatar
-1 votes
1 answer
106 views

GetInstance and GetValues (Custom Setting)

is that possible to send the name of the record stored in a String variable to custom setting. ex. link test=link.getInstance(strvar); the usual way is to pass the record name ex: link test=link....
Pradeep Kumbar's user avatar
0 votes
0 answers
195 views

Storing tokens for custom token management

I'm working with an API that does not follow typical OAuth standards and requires custom headers for passing the token. Typically I would use Named Credentials, but due to the atypical pattern it is ...
S.B.'s user avatar
  • 2,071
0 votes
1 answer
76 views

How to store UI Preference based on User

Hello I'm trying to store UI preference based on User, irrespective of browser or device, it should store the preference of user globally, I tried with Javascript's localstorage function but it is ...
Abhishek Sharma's user avatar
1 vote
1 answer
114 views

Any way possible to move multiple Set<String> into Custom Setting or Custom Metadata?

As my firm expands, I may have numerous Set that can each hold N different values. I want to move these Set values out of Apex and into Custom Settings or Custom Metadata, but there isn't a field for ...
abhay gupta's user avatar
0 votes
2 answers
188 views

Custom Setting generates duplicate records

I have a custom setting that has a number field, which is used to generate registration numbers for my Account records. I am incrementing the custom setting field everytime a new record is inserted. ...
Subhodeep Sarkar's user avatar
0 votes
0 answers
21 views

Storing Secret Key RestResource public Site

I was wondering what would the best option for storing a secret key for a public profile? For other keys and secrets, I've been storying it with the Custom Settings, however due to the way the ...
Kevin Yao's user avatar
  • 107
1 vote
0 answers
67 views

Associating Custom Settings with a Connected App in a 2GP

In our 1GP, there is a Custom Settings object and a Connected App. On orgs where the 1GP is installed, if you go to Setup -> App Manager, select the Connected App in the list and pick Manage, you ...
nstuyvesant's user avatar
3 votes
1 answer
399 views

Where to store longer Oauth Access Tokens?

We are implementing a Custom OAuth flow not using NamedCredentials and AuthProviders. For the storage of the Access Token we planned on using a Protected Custom Setting modified by an LWC component (...
Robert Sösemann's user avatar
1 vote
1 answer
224 views

Tried referencing a Custom setting Text area(255) field inside a Formula in salesforce flow, but somehow it is erroring out saying field not exists

Referencing Text area field belonging to custom Settings heirarchy object inside a condition formula of a Record Triggered Flow is giving following Error: Field $Setup.CustomSettingName__c.test__c ...
Akansha Gupta's user avatar
2 votes
0 answers
553 views

How to make HML Email Template have dynamic Base URL

We have an HML email template using the {{{}}} syntax to provide a link to a record. Unfortunately, this syntax hard codes the base URL within the Email Template XML. For example: <a href="...
Mike Paisner's user avatar
0 votes
1 answer
142 views

Can I remove a custom setting after our subscribers manually delete them?

Can I delete Custom Settings in Managed package salesforce? Similar to the question above. We moved all our custom settings into one custom setting. I was thinking once our subscribers upgrade to the ...
Chang Yea Moon's user avatar
0 votes
1 answer
169 views

Environment specific custom settings

I am integrating SalesForce with a third party app and I would like to have the URLs go to the sandbox url of the third party app in my sandbox environment and I would like them to go to the prod ...
Oznomal's user avatar
  • 103
0 votes
0 answers
459 views

How can we update custom field using SFDX CLI

I have a custom field under custom settings. The settings type is "Hierarchy" and custom field type being "Text". I two jenkins pipeline which I am using for Integration and ...
Swapnil Shrishrimal's user avatar
0 votes
1 answer
760 views

Total list overview of vlocity_cmt__GeneralSettings__c values

For the use and correct configuration of the Vlocity CMT package I am looking for the total list of all the possible settings of the vlocity_cmt__GeneralSettings__c custom setting. Are there more? ...
Theodoor's user avatar
  • 441
0 votes
1 answer
59 views

Code Coverage for custom setting

I am writing test class for the below method. But it is giving me error - List has no rows for assignment to SObject get{ if(PCAppSwitch__c.getInstance().Candidate_Record_Type_API_Name__c =...
goel123's user avatar
  • 15
0 votes
1 answer
237 views

custom auto number field + concatenate account name using flow but get syntax error

UPPER(LEFT(Opportunity.Account.Parent.Name,1})+trim( MID(Opportunity.Account.Parent.Name,FIND(" ",Opportunity.Account.Parent.Name),2))) &'/'& Upper(LEFT(Opportunity.Account.Name ,1)+ ...
babu nagarajan's user avatar
0 votes
1 answer
188 views

Default value for custom fields

I want to assign a default value to the custom fields of a custom setting. My field type is text and I am unable to find the right syntax for it with the formula editor. I am using a dev org and these ...
Badar's user avatar
  • 45
0 votes
1 answer
450 views

Hierarchy Custom Setting default value in Formula field taking the old value into calculation

I have a hierarchical custom setting called Test_Custom_Setting__c and I have field in there called Time_Delay__c set to the default value of 5 and also the Organizational defaults for this field is ...
sumchans's user avatar
  • 777
1 vote
0 answers
105 views

"Nested" Named Credential Callout

I have a named credential, let's call it NC1, setup for a custom AWS endpoint. This works great using the endpoint and an access key. However, as part of the body of NC1, I need to send an auth ...
Rory's user avatar
  • 429
0 votes
1 answer
79 views

Need to change appearance of LWC based on a record's field

How to store an information that let users to change the LWC's appearance dynamically? The user can define rules like: If that field's value is "X", appearance should be "A" and/...
pt_5858's user avatar
  • 45
2 votes
2 answers
2k views

Custom label/settings/metadata in email templates

Is that possible to use a Custom Label/Settings/Metadata inside an Email Templates by referencing? instead of creating a formula field as it was suggested here
Nick's user avatar
  • 7,002
-1 votes
1 answer
139 views

How to assign a value to to a field stored in a custom setting?

I'm building an app and I'm giving users the ability to select a specific field to populate from a list of all of their fields. I'm storing that field's API name in a custom setting. I want to create ...
JVZ's user avatar
  • 17
1 vote
1 answer
665 views

Does custom setting fields value changes shows in setup audit trail?

Does custom setting fields value changes shows in setup audit trail ? I don't find changes in audit trail.
Amit Kundu's user avatar
0 votes
1 answer
498 views

Can we create record of Custom Setting if users doesn't have ' Customize Application' admin permission

I have a custom profile having license Salesforce, I have created a Custom Setting with label 'User', I have added my custom setting to 'Enabled Custom Setting Definitions Access' of newly created ...
Ritesh Chimankar's user avatar
2 votes
0 answers
204 views

Custom setting insertion contributing to Lock Row exception which finally causes to ConcurrentLongRunning Transactions

We recently faced ConcurrentLongRunning exceptions in our org. We resolved a few rest entry points which SF Support team suggested but few I am not sure if SF Support team analysis is correct. We have ...
Nagendra Singh's user avatar
1 vote
1 answer
354 views

Why creation of Apex Trigger on Change Event for Custom Setting fails if it is available in the picklist?

Change Event for Custom Settings is available in the picklist to create Apex Trigger, but when you try to create an Apex Trigger on that, it fails. Why?
Patlatus's user avatar
  • 16.5k
0 votes
1 answer
783 views

How retrieve Default Org Values from Custom Settings to Visual Studio?

We want to change our 'Default Org Values' in our repo, but we don't find the option in Visual Studio. We are using Visual to upload the code to AWS and need to change this. We tried to include the ...
dibanepa's user avatar
0 votes
1 answer
514 views

How to use Custom Settings or Custom Metadata to dynamically add fields to code

I have written apex code to copy the data of a few specified fields from Order record to Order Line Item record when their values are modified. The problem here is every time a new field has to be ...
Akshay Vasu's user avatar
-1 votes
1 answer
464 views

Cannot See Validation Rules

My boss has asked that we modify all validation rules in our org. We’re creating a custom setting that will allow admins to bypass all validation rules (validation rules will not apply to admins in ...
SalesforceAdminKanova's user avatar
1 vote
1 answer
4k views

what should I use for the default no-reply address?

I am confused about Special Purpose Organization-Wide Email Addresses. By design, a no-reply address is one that human beings don't check the inbox, but Salesforce requires us to click a verification ...
Foo Bar's user avatar
  • 286
8 votes
2 answers
1k views

Is it possible to get a Custom Setting without the cost of a SOQL query and at the same time do it DYNAMICALLY without hardcoding the setting?

Once I had the illusion that accessing custom setting is always free and does not consume any governor limits. Until today: I've learned the hard way that this is only half-true. It is true, that this ...
Uwe Heim's user avatar
  • 28.3k
1 vote
2 answers
110 views

Is it possible to have an APEX Testmethod to see SOME, but not ALL data?

Usually I only need @isTest(SeeAllData=false) But now I need to see some Custom Settings (they count as "data", too). And at the same time I must ensure to see only the Custom Settings, but ...
Uwe Heim's user avatar
  • 28.3k
1 vote
0 answers
47 views

Target Org Community user unable to access Protected custom setting in Managed package

We have created a custom lightning component for one of our client who are utilizing our Managed package. We are calling a managed package global apex class from this custom lightning component where ...
AshSFcloud's user avatar
1 vote
1 answer
189 views

How to encrypt customer data in managed package so that the package developer cannot see it

I have a requirement to store sensitive customer information in a protected custom setting in our installed package. From my understanding through this answer the information should be encrypted ...
TemporaryFix's user avatar
  • 2,937
0 votes
0 answers
314 views

Default values for percent type custom setting field incorrect when clicking new in manage

I have a custom setting with a percent type field, which has a default value set (0.25). In apex, if there is no Custom setting for the user, getInstance gets back the correct default value of 25%. ...
user16315's user avatar
  • 124
1 vote
1 answer
168 views

How to store setting at User Level?

I have a requirement to showcase a detail page having multiple Accordion sections which are closed by default. Now there will be a checkbox which will allow the user to make sure that all the ...
user3012372's user avatar
0 votes
1 answer
155 views

Can we use custom setting to restrict access for a user?

Can we use hierarchical custom setting to restrict a particular user from deleting object record. The profile has Delete permission on profile for that object. And it should not be changed as per the ...
Swap31's user avatar
  • 23
0 votes
1 answer
484 views

Multiple users and concurrent transactions

I have a client who wants us to build a custom auto-number function that applies only to a certain type of campaign record. They want to append the number to a text field for that specific campaign ...
David Cheng's user avatar
  • 7,088

1
2 3 4 5
11