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

get picklist values from object field to LWC

Hello everybody I am trying to pass picklist values from object field to other picklist input fields in LWC without using the recordTypeId because in my case the object does not have a recordType. I ...
0 votes
1 answer
75 views

I need help with Subregion formula that should check 2 text fields instead of 1

I have a problem with a formula for a custom field. I've written the formula that works partially but I want to make some tweaks and I dont know how to do it. I have 2 text fields State HQ and Country ...
-1 votes
1 answer
381 views

custom field in opportunity which gives number or count of closed won opportunity associated with the account of that opportunity?

Thank you in advance. My requirement is I need to create a field in opportunity object which gives count of all closed won opportunity for the account of that opportunity. Let suppose Account A has ...
0 votes
1 answer
2k views

Default Value On A Custom Field

I created a custom percent field on the contact record page and entered in a default value in the "general options" section, but the default value will not auto-populate when I go to the ...
0 votes
0 answers
213 views

Custom fields are not visible in custom report type

I am not able to see all the custom fields of an object in custom report type which is recently created. I have opened the report type and tried to edit the layout but the custom fields are not ...
0 votes
1 answer
683 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 , ...
0 votes
1 answer
458 views

Custom field on Payment object automatically filled out when Opportunity is created

My organization is using the Salesforce npsp (non profit success pack). We use the Opportunities object for both donations and grants and separate the two by different Record Types. When someone ...
0 votes
1 answer
271 views

Why can't I access a custom hierarchy field on `User`?

I have two custom hierarchy fields on User. When I access a user and click "Edit," I have access to one of these fields but not the other. I've double-checked the following: I'm logged in ...
3 votes
2 answers
2k views

Pardot API and custom fields in email templates

I'm using the Pardot REST API to send emails documented here: http://developer.pardot.com/kb/api-version-4/emails/#sending-one-to-one-emails It's all great but I would like to set custom fields in ...
1 vote
4 answers
1k views

Salesforce Data Dictionary Selective Standard + Custom Fields

I was tasked with creating a Data Dictionary to document fields and objects in my Salesforce Org. The dictionary would be a reference point to all teams that would be used to rationalize the existing ...
0 votes
1 answer
172 views

How to set the Visibility rule for the Salesforce Custom Filed

How to set up the visibility rule for the Salesforce Custom Field naming "Cable Provider" I want to make the field appear only when the "Manufacturing Code" is "BUS". I ...
0 votes
2 answers
538 views

How can I control the value in one field based on the other field?

I am new to the salesforce , please help me to get fix for the below requirement. As marked in the image,the Chapter is a lookup field which needs to show up values based on Subchapter/Division field. ...
0 votes
0 answers
484 views

How can we update custom field using SFDX CLI

I have a custom field under custom settings. The settings type is "Hierarchy" and custom field type being "Text". I two jenkins pipeline which I am using for Integration and ...
0 votes
1 answer
202 views

How to pass value from attribute lightning component to apex controller without apex

I have a component with an attribute. I try to pass the value to the controller without succes. How do I achieve this. Aura component <aura:attribute name="currentUser" type="...
0 votes
1 answer
47 views

Is there a method for lateral summation (without Apex)?

Our team has created Forecast__c which is a custom object related to the Parent Account of any hierarchy. Each Parent Account has a Forecast for every month of the account. So, for example, there is a ...
-1 votes
1 answer
574 views

how to see previous value of a field in salesforce edited by mistake

I edited by mistake the value of a field. The track history of the custom object isn't enable. Can i do something to see the the old value? Maybe with a query.
1 vote
0 answers
19 views

Update non-managed custom field when it exists [duplicate]

In my managed package I have a custom field on the Opportunity called Interest_Rate__c. Since it is in the managed package it has my package prefix so like my_Namespace__Interest_Rate__c. As part of ...
1 vote
2 answers
4k views

How to check which field is used where before deleting those fields?

I have to delete some fields on Account object.But before delete,I want to investigate whether these fields used.e.g.The field could refer somewhere in apex class,VF,WF rule,Formula field,Territory ...
4 votes
1 answer
2k 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 ...
3 votes
1 answer
2k views

Can we change field type in patch org of manage package?

We have created a manage package which contains many custom fields. I know that we can not change the field type in manage package. My Question is can we change field type in Patch org? or is there ...
1 vote
2 answers
375 views

Hide PII in Contact Record for a specific Profile

I created a "Read Only" custom profile. I have a "Private" Record Type for the Contact Object. I would like to hide PII fields in the "Private" contact records for the &...
-1 votes
1 answer
385 views

Syntax Error: Extra ","

It has highlighted the "," specifically before "Cold Logo" and im not sure why. this formula works in "Row level" but creating a custom object, its not. can you explain ...
0 votes
1 answer
2k views

Automatically Populating Account on Contracts Created from Opportunity

My company has just started using Contracts. We would like our sales reps and managers to create the Contract from Opportunities. I added a custom field called Opportunity__c which is a lookup to the ...
0 votes
1 answer
759 views

Add 2 Different Times and Return value in time(Formulae field) in HH:MM format

I need results of two fields of type text in time format to be the same time format and then the result has to be time of HH:MM format aswell text in formulae field
0 votes
1 answer
1k views

how to show picklist values in different languages dependent on the current user’s country?

I want to show picklist values in the language of the logged in user. (don't want to use VF pages)
0 votes
2 answers
2k views

How to convert Contents of Rich Text Area?

I am Querying Rich text area field using sforce connection in vf. I am getting the result in html format. I need only the text with the applied css format. how to achieve this. SOQL Result: <i&...
-1 votes
1 answer
640 views

How to map picklist values of two different object? [closed]

There are two picklist fields contact_status_c and the second one is opportunity_status_c. I want to do mapping in a way such that if field one is 'X' then second one will be 'Y'
0 votes
1 answer
139 views

Multi Select Picklist field VR

Is it possible to create a Validation rule or something on multi select picklist field so that the user can select maximum of 3 and minimum of 1 values out of 10.
0 votes
1 answer
194 views

Default value for custom fields

I want to assign a default value to the custom fields of a custom setting. My field type is text and I am unable to find the right syntax for it with the formula editor. I am using a dev org and these ...
3 votes
1 answer
734 views

How can I know via API how many fields are allowed to create in custom object

I am trying to create sql table structure in salesforce as an object. In salesforce, there is a field limitation that allows only creation of 100 fields (I am using PE). My SQL table contains more ...
1 vote
0 answers
246 views

Getting multiple custom field with same name using Custom Field Tooling API

I am facing a scenario where I am getting multiple custom fields with same name when executing tooling api for Custom Field The API I am using is : /services/data/v55.0/tooling/query?q=Select+...
0 votes
1 answer
564 views

How do I create a custom field which contains multiple data type?

I want to create a field with a question (e.g. How was the service of employee x) and allow the employer to pick a result (e.g. good, average, bad) as well as to add comments. However, while i believe ...
-1 votes
1 answer
294 views

What fields are converted by State and Country/Territory Picklist?

I am looking to implement this. what fields will be changed by this? Only the default ones? Or does this apply to custom fields from custom objects as well? For example, we have a field called ...
6 votes
4 answers
10k views

Search for a field in all objects

I am looking for a field named "Owner_c" in all Objects. Any easy way to find it through work bench or a query in Developer Console.
0 votes
1 answer
331 views

Remove special characters from encrypted phone field in salesforce

I've encrypted phone field is there and it referred in formula field. I need to remove special character in the formula field (tried with SUBSTITUE) but it is not allowing to change because it's a ...
0 votes
1 answer
903 views

How do I use a formula text field to display in a record whether a candidate has been approved or not, based off a checkbox?

I have a checkbox field named "Approval" that is checked and not checked when creating a candidate record to see if they have been approved. What I'm trying to do is create a formula text ...
0 votes
0 answers
35 views

A formula text field to see if candidate has been approved [duplicate]

I have a checkbox field named "Approval" that is checked and not checked when creating a candidate record to see if they have been approved. What I'm trying to do is create a formula text ...
7 votes
2 answers
10k views

Number Field - Limit Four Characters - Validation Rules

I'm having trouble enforcing a minimum character requirement on a Salesforce number field (using Validation Rules). I can get the limitation to work on a text field using: AND( ISBLANK(...
0 votes
1 answer
166 views

Unable to update leads to closed won due to custom lead source object | Required Field Missing [closed]

Having an error code: REQUIRED_FIELD_MISSING generated when attempting to convert leads to Closed Won. This only happens at the closed-won stage, regardless of the lead source type entered. Does ...
1 vote
2 answers
229 views

How do I determine by Apex code if Custom Field allows setting Field Level Security and if can be edited?

To assign correct FLS permissions in bulk for a given profile I need to know which fields are readonly and which fields support Field Level Security. I see that there is field IsFlsEnabled in ...
0 votes
3 answers
672 views

To create a custom field

Is it possible to implement the following requirement in declarative way? One custom field Ability to enter URL of size greater than 500 characters and displays only first 50 characters. Editable ...
0 votes
1 answer
42 views

How to check if field has enough space for inserting data

I want to check if my field has enought space for inserting. So if field__c has enough space for data - it should be inserted into field__c. If not and field2__c has enough space it should be inserted ...
0 votes
2 answers
2k views

How to query/make a report for All fields on All objects? [duplicate]

We have a very old org with many objects and unused fields, how can i query/make a report to find all fields for all custom objects, and order them by lastmodified date? the goal is to find which ...
0 votes
3 answers
2k 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 votes
1 answer
437 views

FLS metadata for a custom field

Where can I find the FLS metadata for a field? In which component metadata I can find the FLS for a field given to profiles?
0 votes
0 answers
248 views

Creating Unlocked Package with Apex class that refers a record type

I need suggestions to package an apex class that references record type. The record type xml refers to many custom fields which do not belong to that package. When I package this apex class, I end up ...
1 vote
1 answer
280 views

SFDX Push Error - You cannot add a master-detail relationship to a managed custom object

We have been developing a managed package which we are using 2GP and scratch orgs to build. This past sprint I had no issues pulling from github, pushing to scratch and proceeding with development. ...
8 votes
1 answer
6k views

No such column on sobject error occurring on sObject that does have that column

When attempting to update a custom object using SF default API endpoints (/services/data/v43.0/sobjects/MyCustomObject__c/customId__c/4003) I am getting a weird error telling me that a column doesn't ...
0 votes
1 answer
271 views

Tracking number of contact attempts based on Tasks under Contact

I need to update a custom field called Contact Attempts on the Contact sobject with a numerical value equal to the number of all Tasks associated with the Contact. Any time a Task is added or deleted, ...
0 votes
1 answer
1k views

Create custom field name with two underscores in account object in salesforce

I want to create a custom field. The requirement says the custom field name must have double underscores (__). The field name should be qidc__onekeyid_ims But Salesforce is giving errors. The ...

1 2
3
4 5
21