Questions tagged [custom-field]

A custom field can be added to standard objects that support custom fields and custom objects to extend the capabilities of Salesforce to suit the specific needs of an organization. Custom fields can be accessed in code by referring to them by their API Name which is their specified Field Name value suffixed with an __c.

Filter by
Sorted by
Tagged with
1
vote
0answers
31 views

Summer'21: OpportunityLineItem always empty for QuoteLineItem. Now how to fill QuoteLineItem custom fields?

While performing regression tests on a Summer'21 sandbox, I noticed that custom fields were not filled in newly created QuoteLineItems. For many years, I have used the trick as described here, and ...
0
votes
0answers
11 views

Change Task Status default and closed value

In the Task can I create a new status value and add it as Default or Closed? When I do this the page just refreshes and nothing changes. New value with "Closed" marked: "Completed"...
1
vote
1answer
54 views

How to iterate over all the queried out fields of a single record

I need to iterate over all the fields that I query for a record and check all of those that are custom field checkboxes and see if any are true. The part that I'm not sure how to do is how to iterate ...
0
votes
1answer
20 views

How are stored percentage fields ? They don't always return the same value

I have a field of type Percent(3,2) named Sector__c.VatRate__c. I initialized it with anonymous apex withe values like 5.5, 10, 20, etc. The code looks like that : sec.VatRate__c = 10; update sec; ...
0
votes
0answers
32 views

How to create and add custom fields to existing custom object programmatically using apex? [duplicate]

I've looked around for this and there seem to be a couple of different ways on how to do this. https://developer.salesforce.com/forums/?id=9062I000000Qw4ZQAS Create custom fields with apex However, ...
1
vote
2answers
24 views

Salesforce field to have lower case only

We have a custom field which our business team only wants it to have lower case characters. So basically I am telling them we have 4 options: Use a formula field to convert into lower case Use a ...
0
votes
0answers
35 views

Custom field updating in database but not showing in UI

I have a custom field on the Case object, which is of type Number(18,0). This field is originally null, but after a trigger call, it gets updated to a certain value fetched from an API. I have ...
0
votes
1answer
33 views

Pass custom field value in to apex class

I have an object called 'Application__c' and field in that called 'Customer_Id__c'. I need to pass the Customer_Id__c to apex class whenever user enter the data in the object. Apex class public ...
2
votes
1answer
20 views

Changing the colours of the fields depending on a formula?

I have two number fields on opportunity layout. A and B. I want to create a formula field and when A>B the formula field will be red or just an indication that people will notice it right away when ...
0
votes
0answers
19 views

How to change the appearance of quote templates with custom fields to include quote line item numbers?

In my opportunity I created quotes and added quote line items. They appear very nice in here (1, 2, 3, 4, 5). However, when I click on create PDF It shows them without the line numbers. How can I ...
0
votes
1answer
21 views

Copy Salesforce standard auto increment field to custom field [closed]

I'm trying to copy the 'Lead ID' field that's auto generated by Salesforce into a custom field. I'm unable to view this particular field under Leads but its coming up in reports. Is there a way to ...
1
vote
1answer
50 views

How to change field permissions in a permission set or profile programmatically (APEX)

I've been testing out a component where one can programmatically create a field in the user object. It's being used to allow a user to check a few boxes that'll filter components in pages (using the ...
0
votes
1answer
35 views

Update record on server using lightning component

may I know why this code does not change/update the field object data? By default, the field object (Final_Approved__c) is false. The type is a checkbox. This code is in lightning environment js. ...
0
votes
1answer
13 views

Address(home, a location on google maps, etc.) data type

How can I create an address data type? On my Salesforce there is Billing address. When I create a new account I see the billing address field and it show something like this. How can I create new ...
0
votes
2answers
32 views

Changed an input field from required to not-required but it is still required

I have created a custom Number field and set it as required. I later changed that field to not-required. But Users are reporting that the field is still required, even though when checking the Object ...
0
votes
1answer
40 views

Error while executing query for custom fields using Tooling API

I am trying to get all the custom fields, but on using the tooling API through APEX am getting the below error APEX Code : String baseURL = URL.getSalesforceBaseUrl().toExternalForm()+'/services/...
0
votes
1answer
28 views

Update value in object field checkbox by clicking custom button [closed]

I want to know how to update check box object field. Currently the check box by default the value is uncheck(false). But I want when user click yes button, the check box object field(yellow ...
1
vote
1answer
39 views

Add radio button or check box in approval layout page

is it possible if I want to put a radio button or check box in this page? I want to ask user(manager) either it is a final approval or not. If it is possible, may I know how?
4
votes
1answer
106 views

Do Master Records (in a Master-detail Relationship) Get Locked?

Suppose the following: There's a master-detail relationship between two custom objects There are no roll-up summary fields on the master object There are no declarative automations or Apex triggers ...
0
votes
1answer
23 views

Updating value from apex class

I am in the process of learning apex / salesforce. I am trying to update a textfield, in the salesforce UI with the Account object, when a HTTP request is made. So in the base class I made for the ...
0
votes
0answers
45 views

Adding Custom Field to Cart Page in B2B Commerce

I am trying extend the Cart Data Provider and I am having a bit of trouble. I need to pass a custom field to the Cart page. I am able to get custom fields to show up when I extend the Product Data ...
0
votes
1answer
38 views

How to store/process a JSON payload in salesforce which contains greater than 1,638,400 characters

We have a NodeJS application which receives & sends data to Postgres database. The Postgres database is in sync with salesforce object through Heroku connect. The JSON that we need to send to ...
1
vote
1answer
255 views

Why Salesforce does not accept my REGEX?

I have a RegEx created and tested in regex platforms, this one: ;.+$ If I check its functionality the result is okay, you could check it too in this link https://regex101.com/r/ocDofm/1/. The problem ...
0
votes
0answers
17 views

User can no longer use fields that got deprecated from managed package?

So through some optimizations we were able to lighten our footprint of our package and deleted some fields we used to ship. The problem is now, these fields end up becoming 'deprecated' in client orgs ...
0
votes
0answers
12 views

Formula to calculate 'Created Date Week in FQ'

Hi guys could someone help me figure out where this formula is calculating wrong. The formula is used on a custom field that calculates the week in fiscal quarter the record was created. In this ...
0
votes
0answers
22 views

How to skip a mandatory field in custom layout when you create a new record

Background; I have created a custom object A which has a Master-Detail relationship field to a Parent object (Let's say it's field F). I also created a custom layout for the object A. Problem When I ...
0
votes
0answers
33 views

Managing Custom fields when breaking down a monolith org into packages

We're moving towards the package development approach instead of the current monolith org. We'll also be using scratch orgs and CI/CD. The most important and tricky part that I'm facing right now is, ...
0
votes
1answer
22 views

Compiled formula is too big to execute over 5000 characters, only standard field in the formula

I know they are quite a few questions regarding formula being to long (over 5000 characters), from my understanding if the formula uses fields who are also part of other formula fields this will count ...
0
votes
0answers
20 views

The Opportunity field isn't getting updated from Flow

I have created a Record Triggered flow on the Opportunity object which triggers on both creation and update of Opportunity record. In my first step I have added a condition to check if a lookup field ...
0
votes
1answer
6 views

Custom fields do not show for AssociatedLocation

I have split my metadata into multiple sub-directories (I'll call them 'tiers' here) with each properly described in my sfdx-project.json I just successfully deployed 4 of the 5 tiers using sfdx force:...
0
votes
0answers
19 views

customize the alert after saving a case in salesforce lightning

Whenever we save a case in lightning, there will be shown an alert(toast/modal) saying "A case with the case number(00001049) is saved". I believe this is a standard alert from salesforce on ...
0
votes
1answer
35 views

How to Fetch Mini Layout Fields inside Salesforce Apex Class?

On Mini Layout we have Fields & RelatedList, I want to ask on how we can get/Query the Selected Fields for an Object on Mini Layout Page in the Apex Class? I am using the following code snippet, ...
0
votes
1answer
11 views

How to enter folder path into New Custom Field Default Value?

I am trying to make a custom text field and set the default value for it to a folder path on the C drive. However it is giving me "Error: Invalid Data.", I assume this is due to the slashes ...
0
votes
1answer
24 views

How can I create picklist field on a object, where the values/options of picklist should be the fields of another object?

I am new to salesforce and I have been trying to find answer for this requirement related to our application. Basically I have a Custom Object Field_Config__c, on which I want to create a picklist ...
0
votes
1answer
29 views

How to refer picklist values in apex, so that they will be easier to find later in codebase

I'm working on a statndard object like Opportunity, where I have a picklist lets say Status__c on it. Since Opportunity is a common object for multiple teams, Status field it is being used in the code ...
1
vote
1answer
43 views

Set Packaged Custom Field as External Id After Initial Deployment

I've been struggling to find a definitive answer as I've seen contradictory information. In our managed package we have a custom field that we want to make an External Id, but is this possible at all, ...
0
votes
1answer
42 views

How to delete custom fields from Big Object?

How do I delete non-indexed custom fields on a Big Object ? I do not see a 'delete' option next to 'edit' option of a field.
0
votes
0answers
40 views

Can not delete Account field because of Criteria Based Sharing Rule

I am trying to delete a field from the Account object but when I try to do so, I get: This custom field is referenced elsewhere in salesforce.com. Criteria-based Sharing Rules After looking ...
0
votes
1answer
142 views

SFDX - deploy a brand new custom object with only specific fields from one org to another

I have a scenario where I need to deploy a brand new custom object only with specific custom field(s) to another org. The other org does not have that custom object at all. I'm using sfdx for VS Code ...
0
votes
1answer
270 views

Opportunity Product (Opportunity Line Items) roll up to custom fields on Opportunity object?

I am given some requirements to create custom fields to make a copy of the data sources on the opportunity object on Salesforce. Here is the full user story: Sales Reps choose a variety of products ...
0
votes
1answer
156 views

Custom Tabs in Salesforce

I have a custom app named "Home Solutions" in Lightning Version of Salesforce. I created another custom object on Sales app named School Details (standard app available by default in SFDC) ...
0
votes
2answers
32 views

Assign look-up fields in Page layout

I have a custom object Called App__c and Context__c , App__c has look-up with Context__c , Now need to add App__c object fields in Context__c page layout. Is this possible? Anyone can help? Thanks in ...
0
votes
0answers
25 views

Need advice on configuring a formula/validation on a numeric field

I am fairly new to Salesforce and was hoping one of you experts can help me in configuring a numeric field correctly. Basically I need a field that can have an initial value entered, which will then ...
0
votes
0answers
18 views

Reference Text Formula in Currency Formula

Trying to create a Currency formula field then essentially goes IF Text field CONTAINS "Partial Credit" (Amount__c * 0.5) IF Text field CONTAINS "Full Credit" (Amount__c * 1) But ...
0
votes
0answers
16 views

Suggestions for storing custom events in a campaign

So I created this custom campaign in Salesforce, where I chose Other in type column. The way my campaign happens is I send an email to a thousand people which contains a link and I'd want to track ...
0
votes
0answers
27 views

REST callout to another org - unable to access custom field due to it ending with __c [duplicate]

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... ...
0
votes
0answers
76 views

How to handle save in custom lightning Datatable with lookup fields

We have worked on a cuistom datatable in https://live.playg.app/play/lookup-in-lightning-datatable-lwc . Lookup Fields are not being Auto-populated .Save is also not working . We need some help , We ...
0
votes
0answers
95 views

How to autopopulate the existing lookup values in Custom Lightning Datatable using Lwc

can you help me in auto-populating the existing lookup field values. There is an example in this website : https://live.playg.app/play/lookup-in-lightning-datatable-lwc I need to display all the ...
2
votes
0answers
21 views

Which permissions are needed to access “CustomField” object?

We are using the metadata API to access field metadata such as description, data type, default value etc. This is for standard objects but on custom fields e.g.: SELECT Id, Metadata, TableEnumOrId ...
0
votes
1answer
32 views

How can I pass a parameter into a method inside an if statement within a visualforce page?

I have the following Controller and Visualforce(VF) page where I need to conditionally display a different value based on what is passed into a method. Question How can I pass a parameter into a ...

1
2 3 4 5
18