Stack Exchange Network

Stack Exchange network consists of 174 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
2answers
10 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
17 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
24 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
17 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
31 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 ...
1
vote
2answers
82 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
33 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. ...
2
votes
1answer
29 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
26 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
18 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 ...
-1
votes
0answers
33 views

Inserting Custom Field with Field Dependencies in Apex

I am having a hard time inserting a new record into a the Case Object. This Case Object has a custom field (picklist) called "Category__c", which I add through Apex like so: Case cs = new Case(); cs....
0
votes
1answer
39 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
22 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?
0
votes
0answers
27 views

Unable to set pre selected value in custom lookup in lightning component

I am trying to implement re-usable custom lookup. I have referenced code from following URL, http://sfdcmonkey.com/2017/07/17/re-usable-custom-lookup/ I am able to show list of values in lookup when ...
2
votes
0answers
13 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
40 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
17 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
18 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
25 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
32 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
56 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
25 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
225 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
44 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 ...
1
vote
1answer
64 views

Custom field datetype with month and year only

I'm trying to credit a custom field which only need month and year (like credit card exp date) I choose datetype date, when creating the field, but it also needs a date as well. How can I create a ...
1
vote
1answer
25 views

How to autocompile a picklist?

I would like to know if it's possible to autocompile a picklist field with a value of different picklist on others object. In this case, I created a picklist with a name: Campo Prova Picklist ...
0
votes
0answers
29 views

I have created a custom field with the metadata API and when I try to programmatically write to it I receive an error

Wrather, I create the field in the UI or with the metadata api I get the same result on this one field. Error, batchInfo: Error: InvalidBatch : Field name not found : prefix__ID__c All my fields ...
0
votes
1answer
21 views

Change Data Type

I have a field in production number_of_requests__c type Number (18, 0), the entered data is copied (on save) to another field number_of_case__c type Number (6, 0) of another related object. In the ...
0
votes
1answer
59 views

I want to use JSForce to create a custom field on the Contact Object using the metadata API

I am trying to use code like this to create custom fields on the Contact Object in salesforce using JSForce. This does not work of course and the documentation does not show how to do this with ...
0
votes
1answer
75 views

How to create Custom Fields on Standard Objects in the package.xml

I want to add custom fields to the Contact Object in SFDC. When I look into the package.xml I do not see any of these changes or fields. I am missing something?
0
votes
1answer
27 views

Automation process based on count roll-up summary field

I have an automation process based on the returned value from a count roll-up summary field. For instace I have two statuses. Primary status Secondary status Let's say the user creates two records. ...
0
votes
0answers
22 views

Formula Field Related SObject Issue

I do not get why i can't see my custom formula field filled. Are there some rules that do not let me check a reference field on formula? I'm trying to create a 'Shortcut' for handle the Account.Name ...
1
vote
0answers
70 views

Lightning component String.length not the same as what the custom field gives as length

I'm working on a lightning component which stores it's data to a Salesforce Long Text Area custom field of size 600 on the Account object. In the component, we have an html text area, upon each keyup, ...
2
votes
1answer
26 views

Does field length matter much in performance

Maybe very trivial question but I don't know the answer. When I create a new field , I always think why don't I give the max length for this field? How does 20 is different from giving 100 as length. ...
1
vote
1answer
26 views

What is “Field Based Page Assignment Criteria” in relation to a custom field?

I am attempting to delete a custom field from the Contact object and when I do, I get a message saying it cannot be deleted because it is referenced elsewhere on salesforce.com. The section listed is "...
1
vote
1answer
199 views

Not able to create lookup relationship of same object on Activity Object

I have already created activity custom field of type Lookup(user) on Activity object. I want to create one more custom field of type Lookup(user) on Activity object, but I am getting validation error ...
1
vote
1answer
41 views

Custom activity field and page layout

I have created a new custom picklist for an activity type in the Activity Object. This custom field will appear when clicking the "Log A Call" button under the Activity History related list. However, ...
0
votes
1answer
123 views

data import wizard map lookup field custom

I have a Custom Object called MCC with two fields: Name : 'MCC NAME' Code__c: 1234 I have a lookup field on Lead to the MCC object. I am trying to import Leads using the Data Import wizard using a ...
0
votes
2answers
19 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
2answers
49 views

Find record in lookup field on a case object based on custom case number

We have a Visualforce page on the case object which is used to create quality issue related cases of our customers. We have different functional areas such as Design, Quality etc., For ex, customer A ...
1
vote
0answers
90 views

Do custom fields on standard objects in managed package count towards the total limits for number of custom fields in an org?

I have read a lot of questions mainly this one : Custom Field Limits For Managed Packages) posted here but still not able to find a clear answer. I have a 'security verified' app exchange package ...
2
votes
1answer
36 views

How to deal with users without permission while using Lightning Data Services?

To be more specific, I have the following scenario that just happened: I developed a component on a sandbox (development environment). This component uses force:recordData to retrieve some field data ...
1
vote
1answer
18 views

How to add hyperlink to custom case numbers in Reports

We have a visualforce page which is used to input details about quality issues and create cases. I've created a custom case number field for newly created cases in an auto-numbered format. I've to ...
0
votes
0answers
36 views

Custom Fields are not Displaying on Lead Page Layout During Creation

I have created custom lead fields (one currency field, one date field) and added them to the page layout of a custom lead record type. I have verified the page layout assignment is correct. When ...
1
vote
2answers
668 views

“Required field missing: PicklistMasterId” error when deploying a path from a sandbox to another

When deploying a case path assistant from a sandbox to another I'm getting an error when deploying the package: Required fields missing: [PicklistMasterId] We have deployed all fields being used in ...
0
votes
2answers
269 views

Validation rule to allow 15 digits only

Please advise a validation rule to allow me to enter 15 digits only. If the number of entered digits is higher or less than 15 the validation rule should display an error message. If there are ...
0
votes
0answers
93 views

Retrieve email ID pardot

I want to retieve the id of an email within the HTML but I don't manage to reach the email ID : I tried several expressions like : %%_emailid%%, %%id%%, %%email_id%% but nothing works. Do you have ...