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
3
votes
3answers
18k views

How to add fields to “New Event” under “Activity” tab in Lightning?

I am trying to add custom fields to the "New Event" layout under "Activities" on Opportunity: However, it appears this component is a static, non-customizable component because when I click on it in ...
1
vote
3answers
875 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
548 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 , ...
1
vote
1answer
56 views

How do i make global search return a case by searching a value stored in a custom text field?

Recently I was presented with a bug in which Global Search doesn't return any cases when I search for a value stored in a custom Text field inside the case. In my tests to replicate the error I, as a ...
0
votes
1answer
34 views

Can I delete a custom field and a custom object manually in the production org?

I know that some options that are in the sandbox might not be in production. I'll have to delete a Custom Field and a Custom Object in production org. I need to know if it's possible to do manually ...
0
votes
1answer
31 views

Plural Label of Managed Package Object

I have an Object which is deployed using Managed Package in my Org. Here is the object (Name Changed): API name of the custom object is res__Accs__c. Now when I tried to get the plural lable of the ...
1
vote
1answer
1k views

Add Permission to Custom Setting

I added some custom settings for my Lightning Component to put some security related fields like APIKey and Username to be used for the rest API. As these fields can be different for each organization ...
0
votes
1answer
53 views

How can I track the moment when a new object field is added in a batch class?

I have a batch class: public class DataValidation implements Database.Batchable<sObject>, Database.AllowsCallouts{ private List<String> missingDates; public ...
0
votes
1answer
35 views

System Administrator can not see custom field even when FLS is configured correctly

My user has the System Administrator profile. When I go to Object Manager > Task > Fields and Relationships I can only see standard fields, but not any of the custom fields that this object has, ...
1
vote
0answers
23 views

How to add a custom field to Address Compound Field on Account

Requirement: Add a custom field to the address compound field on the account object. Salesforce provides a street, city, state, state code, country, country code and zip code in the address field. I ...
0
votes
0answers
14 views

Custom field on Knowledge Object not appearing Community FAQ Page

Created a Custom Rich Text Custom field field on knowledge object (Provided FLS to required Profiles), Created a article and using that article in community. when trying to access the the FAQ for ...
7
votes
1answer
777 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 ...
0
votes
1answer
61 views

How can I add a new “Currency” type field to a custom object using apex?

When I try to add a new field to a custom object, I get an error. Apparently I missed one of the recommended fields or have some typo? I also tried to add a field of the "Text" type - ...
0
votes
0answers
9 views

CMS Collection doesn't show custom object fields in Field Mappings

I created a custom object in Salesforce and am now attempting to display them in an Experience Cloud site using the CMS Collection component. Within the CMS Collection component settings I only see ...
0
votes
1answer
131 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
19 views

field went missing after logging in again

I have created few fields of type Text on Account object in Test environment from the process "Setup > Object Manager> Account> Fields and Relationships > New". I checked the ...
2
votes
2answers
524 views

Picklist custom field with grouped values?

we have a picklist custom field for Opportunity objects where we have all the countries where my company works. Would it be possible to group the values in this field by region or continent? For ...
0
votes
1answer
764 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 ...
0
votes
2answers
54 views

Help with SOQL inner and outer queries

I have a requirement to find total number of parent records which are not associated to any child records. Now these two parent and child records are from single object called Project__c. To achieve ...
0
votes
1answer
33 views

Adding 2 fields to Log a Call under Activity in Salesforce [closed]

We are trying to add two custom fields under the Log a Call widget in the Activity to capture key information. Our SFDC team is saying this is not possible as Activity tab has its limitation and I saw ...
0
votes
2answers
58 views

How to pass record details dynamically to apex class

Objective: To display the URL of VF page as a link on the record detail page and when clicked on that, the VF page should open in a separate tab by taking the record values, such as name dynamically. ...
2
votes
2answers
364 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 ...
1
vote
1answer
2k views

lightning:inputField is not rendering, saying the request is missing the field data when it is not

I am trying to display a list of date ranges based on an objects start and end dates using a lightning component. When I open it in a visualforce page as part of a set of nested components, it will ...
0
votes
1answer
887 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
17 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
93 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
162 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
22k 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
23 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
746 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
724 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
31 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
66 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
44 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
510 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
33 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
111 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
23 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
34 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
36 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
15 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
33 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
263 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
91 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
40 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
2k 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
737 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
41 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
2 3 4 5
18