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
1answer
790 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
2answers
1k views

Make Custom '__c' Field Searchable in Global Search Bar

I have a custom field at the Opportunity Product level that can't be searched at the moment on the global search, even if I click on 'search all' I have seen this link that selects 'external ID' on ...
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
160 views

SOAP API and invalid Field Type

We use SOAP-API and Perl to transmit data from our web shop to Salesforce and Financial Force. To save invoices and related line items we use FF objects c2g__codaInvoice__c and ...
8
votes
2answers
19k views

“No such column on entity” error for an existing custom field

I am trying to run a simple SOQL on a custom object: SELECT Id, Course_Link__c FROM Course__c But instead I am getting an error saying: SELECT Id, Course_Link__c ^ ERROR at Row:1:...
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; ...
1
vote
2answers
704 views

Inserting an object with not writable field

I've this class that I need to test it: public class A800ExpiredClientReportV2 { Public ID quotID {get;set;} Public List<Quotation__c> quotList {set;get;} Public ...
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, ...
2
votes
1answer
650 views

How to Include Profile Setting into a package

1 . We have package where we have created custom object. 2 . This object needs to be accessed and displayed to standard users in managed package. 3. We have create custom profile which has access to ...
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 ...
0
votes
1answer
478 views

Custom field not showing in list of described object

I am working on an integration using JSforce to query the Salesforce API for data. When I run a describe('object'), I get a list of fields that are contained within said object, including custom ...
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 ...
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
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 ...
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
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
2answers
228 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
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 ...
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
558 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
97 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
836 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
542 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
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
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
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
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:...
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
143 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
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 ...
7
votes
1answer
743 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
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, ...

1
2 3 4 5
18