Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
7 views

Opportunity Line Item's Unit Price(quoted price) field update from related Product custom field

I have a requirement to update the Unit price(quoted Price) field of an Opportunity Line Item from the related Product Object custom field. And I need to perform this update when I am creating the ...
0
votes
1answer
30 views

List all Custom Fields that exists in the org and relate then with the appropriate objects [closed]

I need to list in a visualforce page all Custom Fields existing in my org and them relate then with the Standard or Custom Objects. For example: Example_Object__c Example_Field__c If i select the ...
1
vote
1answer
38 views

Create lookup field that can relate to two types of objects

I have a custom object, that I would like to relate to the built-in Accounts and Opportunities objects. Sometimes this custom object can be related to an Account, sometimes it can be related to an ...
1
vote
2answers
26 views

Field not available in list from SOQL

I have a custom field that is populated by integration, and in certain cases a currency field will end up as blank. It will not evaluate to null or 0. SQL Execute from dev console log: 13:26:53:006 ...
0
votes
1answer
21 views

Time field based on TimeZone

Is Salesforce time field dependant on timezone. Is the time field value change based on TimeZone.
0
votes
1answer
11 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)
2
votes
1answer
132 views

Error in a formula field

I have a requirement where I need to populate records where a criteria is true. The criteria is the users must have joined in between Jul,2018 to May,2019. I thought I can achieve this using a ...
1
vote
1answer
41 views

How to access existing custom fields from SFDX-managed unlocked package?

Long ago, I added a field Type__c to Contact on our production org. Now, I'm using SFDX to develop an unlocked package with code that refers to that custom field, like someContact.Type__c = 'Student'. ...
0
votes
0answers
11 views

Picklist value added to Inactive values list if i create new value from rest API?

I have one pick-list field called type if i gave new value to type pick-list field it's creating the value in field but it is in active.I am creating record Throw REST API.How to make this active ...
1
vote
1answer
18 views

Salesforce DX referring to Global picklist “CustomField not found.”

I have successfully deployed a Global Picklist "State" in scratch Org. Following deployment I am referring the global picklist in a custom field. I am get the following deployment error API Name : ...
1
vote
1answer
28 views

Insert or Update Custom Metadata Type Boolean Field

How, or can we, update Custom Metadata Types that have a checkbox field using the MDAPI? When I set it to '1' or 'true' in both instances it says value not of required type: <?xml version="...
0
votes
0answers
18 views

Can I Stamp my Service Appointment Status?

I'm looking to capture via the process builder when a Service Appointment status has been changed, and I want to store this timestamp in a custom field from a custom object for each one of the ...
0
votes
1answer
29 views

Update fieldPermissions with metadata api of Salesforce

I try to update the permissions on a field created from the API so that it is visible and usable. so I do this via the salesforce metadata API. responses = client.call(:update_metadata, message_tag: ...
0
votes
2answers
29 views

Does Deleting a Custom Field Remove It From All Page Layouts?

Does Deleting a Custom Field Remove It From All Page Layouts? We have around 90 Case Page-layouts. We were recently told to remove a field from all of them. For best practices, we want to remove the ...
0
votes
1answer
18 views

Salesforce Confused on what object it is looking for

In our environment, we have two custom Course objects, one's identifier is Course__c the other is hed__Course__c. (Don't ask me why, it's just how it is.) The one I am focused on is Course__c. ...
0
votes
1answer
24 views

Why does number field comes as Decimal type even if Decimal places is 0 in field definition

A very basic question. We define a number type of custom field and try to fetch it in apex. After this suppose I write following code : Set<Integer> validCounts= new Set<Integer>{1,3,6,9}...
6
votes
2answers
217 views

Not all records returned in SOQL Query

I have a query that I'm using to export data: SELECT c.Id, c.SystemModstamp, ... FROM Contact c WHERE c.SystemModstamp > start AND c.SystemModstamp < end AND c.Id > string ORDER BY c.Id ASC ...
0
votes
1answer
14 views

Add hidden form field for lead to account relationship using Web-To-Lead

I have a custom field on my Lead object that specifies an account for the lead referral. I would like to provide the ID for this account on Web-To-Lead form submission but it does not appear to work. ...
0
votes
0answers
31 views

SFDX how to retrieve custom picklist with force CLI

when I push the source to my scratch org I get the following message "You must specify either picklist, globalPicklist, or valueSet." is there additional element to add into the package.XML for ...
2
votes
0answers
71 views

Cannot modify managed object: state=released: newValue='false', oldValue='true'

has anyone encountered and solved a sfdx force:mdapi:deploy error about changing a field from released to non-released? I'm getting this error when deploying to the packaging org. We've been working ...
0
votes
1answer
23 views

How can I lookup an account ID for a Case using a field I am importing that is not the account name?

I have to import a history of cases in Service Cloud and, sadly, the account names I already have in Sales Cloud and the ones in the import don't match. I have a Client ID though in the Account object ...
1
vote
1answer
41 views

Formula field to calculate the percentage of days remaining

I have a custom formula field where I need to calculate the amount of days in the year * 100 \ 365 = % of days remaining. I've created the following formula: ROUND((365 - (CloseDate - DATE(YEAR(...
0
votes
1answer
25 views

Hyperlink in a long text Area

I have a long text area field on an object. There is a link present for each record on that field which works fine at the record level but does work on reports. I want to make the link clickable in ...
0
votes
1answer
43 views

Cannot edit custom field

I cannot edit a custom made field even though I have made it visible and editable to my current user profile. If you have a look at the first image here, it clearly shows the Word Count Limit field to ...
2
votes
1answer
55 views

sfdx - second generation packages - push custom fields fails silently

I have setup three sfdx second gen packages, each with their own sub folder in my umbrella project folder. Package 1 defines some Custom Objects. Package 2 adds some custom fields to the custom ...
0
votes
2answers
26 views

List all standard and custom fields for a given object (standard/custom object)

is there a way to list all the fields both standard and custom for a given object. tooling api - customfield gives only list of custom fields but not the standard fields.
1
vote
1answer
50 views

Deploying a custom Email field set to Unique fails

I'm trying to create a unique email constraint on our Contact object, the general consensus seems to be to create a new, unique custom field, and copy the Email field into it via a trigger or workflow....
1
vote
1answer
26 views

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

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 ...
0
votes
0answers
18 views

Custom field not showing up

I created a custom multiselect picklist field in activity object.This needs to be shown in event layout.I added this filed in event pagelayout as well.But this is not showing in the page.Please ...
1
vote
1answer
35 views

Formula(s) that reference this field are no longer valid: Compiled formula is too big to execute (5,459 characters). Maximum size is 5,000 characters

I have a Formula Field(Time_Spent_Technology_Setup_Number__c) to stop calculating time based on the Status. Whenever i am trying to save the field it is throwing below error: (In the logic I am not ...
2
votes
2answers
521 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 ...
0
votes
2answers
112 views

SOQL to get previous months records till date

I have a requirement where I need to fetch records from Previous 3 months to Today. When I tried using Last_n_Months :2 binding, I can only retrieve previous months records excluding current month. ...
3
votes
1answer
94 views

Custom time field not visible in process builder

I would post my question to the Salesforce community but I am unable to login there for the last couple of days for an unknown reason. Today I create to near-identical custom fields on the contact ...
0
votes
2answers
21 views

records needs to be read only on based on type

I have contact and one picklist field on contact. If picklist values is 'Read' then no one should edit the record and if he tried to edit and save then error needs to be thrown 'You are not allowed to ...
0
votes
2answers
28 views

API to Create and Delete a Relationship Object

In our sandbox, we have created Student, Role, and StudentRoleRelationship objects. Currently, we have a Drupal project that has its own Student and Role objects, therefore in Student and Role we have ...
0
votes
3answers
22 views

Adding a Custom Field to all sObjects in the same edit?

I want to add a custom field to all my salesforce objects, at the same time, a high level idea, is that they are control ID for an external source, but is there a way to add the fields to all objects ...
0
votes
1answer
41 views

How to collect summary data into custom object with formulas

We have a custom object which would be used for reporting. This custom object has a Sales Rep lookup field attached, so each object will have a link to a Sales Rep. We would like to collect the SUM ...
0
votes
1answer
23 views

How to display a field in the Lead layout only when the field is not blank?

In the lead object I need to display a custom text field on the lead page layout ONLY IF field is NOT blank. Is that feasible in Salesforce and how it can be achieved?
2
votes
0answers
14 views

How to create report, where the amounts are cumulated into the next month

I've been looking at this problem for a while now, and I haven't found a solution on any of the other salesforce forums. I want to have a report with a column chart, which does the following: we ...
0
votes
2answers
55 views

Import and use strike components

I'm new to salesforce development so this will be probably a very trivial question but I'm stuck here. I'm trying to import and use Strike lookup component So I have imported all the files in the ...
0
votes
1answer
40 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
1answer
21 views

Cannot access packaged custom field via rest api

I have made a managed package which contains few custom field. Till now it was not having any issues, but today someone installed that package in a group edition salesforce account, and he is not able ...
0
votes
1answer
26 views

Custom Formula Field

I am attempting to create a custom formula field on the Case Object, which brings over the To Address field from the Email Message Object. However, when a new Case is created from Email-To-Case, the ...
0
votes
1answer
24 views

Standard custom fields

I have a totally new, untouched org (Partner Developer Edition). I was going to make some customizations but before I did I created a new unmanaged package. I happen to notice though that there are ...
0
votes
1answer
47 views

Having trouble retrieving a checkbox value with SOAP API in c#

This is the first issue I have ran into retrieving data from Salesforce using the SOAP AP. So I have introduced a custom field which is a checkbox, (lets call it Checked) and I have added it to the ...
2
votes
1answer
181 views

Lightning Component: Custom Fields Not Being Stored when saving force:recordData

I've been following the Salesforce documentation on using the force:recordData component to instantiate a new instance of a Case object (targetRecord) using component.getNewRecord, then pushing data ...
0
votes
1answer
22 views

adding up custom field with triggar [duplicate]

trigger PaymentTrigger on Money_Received__c (after insert, after update, after delete) { Money_Received__c moneyReceived = [SELECT Reservation__c FROM Money_Received__c]; Reservation__c ...
0
votes
2answers
31 views

custom field formula

I have two custom objects. Reservation__c and MoneyReceived__c and they are lookup relationship. I want Reservation__c.totalReceived__c = sum of all MoneyReceived__c.amountReceived__c. There are one ...
1
vote
1answer
530 views

Error : Property 'encryption Scheme' not valid in version 43.0

what i need to change here? how to over come this Error? MY package.xml is 44.0
3
votes
1answer
88 views

Are there any limits on field history tracking?

If I have a record that is updated every 5 minutes, and I have field history enabled on the field changing, will I run into any field history tracking limits? Ex. Does Salesforce only store X number ...