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
0
votes
2answers
33 views

How to get the value of Custom field with SOQL

I am using SOQL to get team names from salesforce for each current project. It all returns, however the name is returned in ID format rather than the string name. This is confusing to me because when ...
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
32 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 ...
0
votes
1answer
54 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
37 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 ...
0
votes
0answers
11 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
62 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
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 ...
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
34 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
59 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
367 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
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
96 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
24 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
32 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
67 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
46 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
37 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
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
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 ...
1
vote
1answer
117 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
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
1answer
94 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
44 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
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?
4
votes
1answer
155 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
29 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
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
61 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
292 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
18 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
17 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
35 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
31 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
35 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
8 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
22 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
54 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
12 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
58 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
40 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
59 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, ...

1
2 3 4 5
18