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
2
votes
1answer
15 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 ...
-2
votes
0answers
19 views

Custom field on multiselect types through an apex [closed]

Industry information contains Business vertical,Division of vertical, Area of divisions of type multiselect and their values are represented below these industry object come under contact object how ...
0
votes
1answer
38 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
18 views

Copy Salesforce standard auto increment field to custom field

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 ...
0
votes
0answers
13 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
28 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. ...
-1
votes
0answers
20 views

How to create an address field with multiple fields and autofill from Google Maps?

On Salesforce account and I am testing the futures in Sandbox. I have a field called Billing Address in account layout. It has multiple fields and autofills from Google Maps. How can I create a field ...
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
0answers
34 views

How to generate random number from a change in another field?

I want that random number to be generated on quote number field only if only I change the stage to estimating. I could not figure this out. I already have a stage field and it controls probability ...
0
votes
2answers
30 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
2answers
205 views

Creating an If -> then statement for a formula field (long list)

We have a list of 30 countries with specific rates at which our company must withhold taxes, and we wish to create a formula field in Salesforce to automatically compute the rate based on the user's ...
0
votes
1answer
29 views

Is it possible to populate a Picklist with the results from API callout? [closed]

I have an API callout which returns a JSON containing the project names (for an external application) the currently logged-in user has access to. I would like to dynamically populate a picklist with ...
0
votes
1answer
30 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
21 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 ...
0
votes
1answer
1k views

I have one lookup field in contact object and need to disable new record to be creating

I have one lookup field in contact object and need to disable new record to be creating. I just wanted to hide/disable the New record creation button from lookup in sfdc.please suggest
1
vote
2answers
481 views

List of all objects with the current number of used custom fields

You can view custom object field limits by going on: App > Customize > Object > Limits Is there a way of getting a list of all objects with the current number of used custom fields? EDIT: I know ...
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?
1
vote
2answers
84 views

How to get references(where the field is used) of a custom field in salesforce via API or Tooling API

I want to find the references of a custom field i.e. where is the field used e.g. Layouts, Apex Classes, etc. via the AP/Tooling API. There is an option on UI in professional salesforce orgs called ...
1
vote
3answers
815 views

how to handle schema changes in salesforce and notify other systems (push vs pull)

We have some of our objects and fields synced to other systems and one of the common concern we see is the changes to these objects / fields (specifically deleting them in salesforce) are impacting ...
0
votes
1answer
539 views

Populate Individual Email Result On Contacts\leads

I want to auto populate the "Hard Bounce" field present in the individual email result on its related contact or lead . For Example if it checked on any of the individual email result in Salesforce , ...
4
votes
1answer
100 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
20 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
30 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
36 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
249 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
27 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
0answers
11 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
1answer
21 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
5 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:...
2
votes
4answers
5k views

“Required field missing: PicklistMasterId” error when deploying a path from a sandbox to another

When deploying a case path assistant from a sandbox to another I'm getting an error when deploying the package: Required fields missing: [PicklistMasterId] We have deployed all fields being used in ...
0
votes
1answer
129 views

Custom Fields are not Displaying on Lead Page Layout During Creation

I have created custom lead fields (one currency field, one date field) and added them to the page layout of a custom lead record type. I have verified the page layout assignment is correct. When ...
0
votes
0answers
17 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 ...
7
votes
1answer
717 views

How can I identify a deprecated managed package custom field via the APIs?

I'm in the process of doing some development in a random1 client org where they want an integration with another parties managed package. Part of this is to run SOQL queries against custom objects ...
2
votes
3answers
1k views

Tracking History of changes in Custom fields of custom objects

I want to track the history of 5 fields in custom object. I have selected the Track History checkbox against the corresponding fields in Custom Fields & Relationships section of the object.Still,...
4
votes
2answers
4k views

Find fields that are not in use

Scenario In my grown org (200 objects, thousands of fields) some fields are not in use. We define as not in use by the following criteria: (A) No records for the whole object or (B) not populated ...
0
votes
1answer
28 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
10 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
18 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
739 views

insert link to a field in a formula field

I have a child object to Case. That child object has a formula field that automatically gets populated with the account associated with Case. I want it to be a hyperlink. So it should show Account's ...
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
27 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 ...
0
votes
0answers
37 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
33 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
1answer
725 views

Updating a picklist from another picklist

I just uncovered that our company was using a custom picklist on the Account object, called "LeadSource" and that the standard field "AccountSource" was hidden. I just completed updating the ...
0
votes
1answer
102 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 ...
1
vote
1answer
50 views

Is there a way to report when a field was last populated?

I want to see if a field is obsolete, meaning if it is not populated with data in the last six months, I would like to hide it from the page layout. So, Is there a way where I can run a report or ...
2
votes
1answer
3k views

“No such column 'New_Field__c' on entity 'Custom_Object__c'” when querying Object deployed via Change Set

I've deployed an Inbound Change Set at one of my Sandbox instances. With this Change Set there was a new field created on one of the objects. However, the following query: SELECT COUNT() FROM ...

1
2 3 4 5
18