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
1answer
18 views

How To Find Out What Was The Last Updated Field On A Lead Without History Tracking

A managed package updated a field on the Lead object but that field is not in the history tracking. Is there an easy way to find out what field was updated exactly? The Lead has 400+ custom fields ...
-1
votes
0answers
25 views

Create Custom Field on Account Level with last won Opportunity ID [on hold]

I need help to solve this challenge. I wanna create a Custom Field on Account Level which shows the last won Opportunity ID. I need this Field to link a submitted Case with this Opportunity ...
1
vote
1answer
20 views

Custom render field for lightning

Scenario I've have multiple images categorised like before, after, extra images. And I want to display them together in Record page, ofc with customisation like in HTML grid something as I need some ...
0
votes
1answer
20 views

Copy opportunity information to custom object using a button [closed]

I'm trying to create a new custom object when an opportunity is closed won. For that I chose to use a button in the opportunity's page layout to create a new custom record. I want to fill ...
2
votes
1answer
90 views

SOQL Profile Id Bug Introduced in Summer 2019 Release

We have discovered SOQL Profile Id Bug Introduced in Summer 2019 Release. To reproduce this, we need to have either a Custom Object or Custom metadata with Custom Field of Text field which contains ...
0
votes
0answers
40 views

Days in this month and days in this year formulas

I have a formulas of days in this month and this year with start and finish dates. My formula counts the number of days in this month/year that fall in a given interval (between Start Date and Close ...
-2
votes
2answers
55 views

How can I simplify the formula to avoid limit?

I'm getting "Maximum size is 5,000 characters" for formula, when trying to do this: ((Account.Cost_per_day__c + IF( (AND(Cleaning__c = TRUE, Parking__c = TRUE)), (VALUE(TEXT(Number_of_cleaning__c)...
1
vote
2answers
171 views

The number of days until the end of the month

For example, I have Start Date 29.05.2019, and Finish Date 4.06.2019. I have a formula field which displays 6 days between these 2 dates. But how can I count the number of days from Start Date until ...
0
votes
1answer
44 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 ...
2
votes
1answer
24 views

Prepopulate user lookup fields with current user, with additional criterias

I have a custom object that we use to log client visits, where both a Sales Rep & a Support Engineer can take part. I have 2 custom lookup fields on this object, one is called "Sales Rep", while ...
1
vote
0answers
26 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
0answers
16 views

Richtext Field contains GIF image

I have richtext field(crich__c) that contains gif image in salesforce. When created an email template and merge my richtextfield it doesnt show.
0
votes
1answer
27 views

AutoNumber based on Fiscal Year

I have Autonumber (fiscal year). For example Jan 1 2018. My AutoNumber field will be 180000 . For next Year Jan 1 2019. my autonunber should be 190000.. is this possible ? Thanks for the help
0
votes
0answers
29 views

Don't get complete set of custom/standard fields in sandbox just after creating it with permission to all objects

I just create sandbox in Enterprise Edition but don't get full/complete set of fields for Opportunity.I made a copy from production org. Any assistance will be highly appreciated.
2
votes
1answer
30 views

How to Change a Custom Field to a Roll-up/Formula Field

I have a custom field on the Account object that had been getting populated by an external data source. We are making changes and will no longer be populating the field from the data source but are ...
0
votes
0answers
21 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
34 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
45 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
36 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
17 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
134 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
104 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
14 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
54 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
39 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
23 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 ...
1
vote
2answers
43 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
39 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
26 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
228 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
16 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
87 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
115 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
24 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
47 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
69 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
46 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 ...
3
votes
2answers
130 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
38 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
58 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
31 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
37 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
2k 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
274 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
205 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
22 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
29 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 ...