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
5
votes
1answer
4k views

Enhanced Lookups (All Fields)

Are custom lookup fields searchable with the (All Fields) Search Enhanced Lookup on a Custom Object? In this example: I have a "Well" (Custom Object) record that has a look up relationship to a "Rig" ...
5
votes
2answers
438 views

A comparison of 2 identical values is returning wrong results

I'm creating a custom field in my Case object, whose value is set based on a formula which compares 2 values in an IF statement. My problem however, is the comparison between these 2 doesn't seem to ...
5
votes
2answers
1k views

Better way for Bulk Assignment of Field Level Security

In Salesforce we have a custom object which has 500 fields. We have around 50 different profiles in our org. Out of this 50 profiles, 30 profiles need access to these fields. Right now, to set field ...
5
votes
2answers
2k views

are custom fields deletable from a managed package?

I see this has been asked before but this doc seems to indicate that custom fields are developer deletable (pg 29), am I missing something? I don't see any way to delete them. https://na15.salesforce....
5
votes
1answer
999 views

Show "last Chatter date" on parent record?

Anyone know of a way to store (akin to Modification Date, etc) the 'last Chatter date' on a record (Account, Lead, Contact, or especially Case)? Perhaps a canned Trigger someone has made if it's not ...
5
votes
2answers
2k views

Metadata API - Struggling With First Custom Object + Fields Creation Project

Update: First and foremost, this is all about building a proper package.xml, objects folder full of ___.object files, and profiles folder full of ___.profile files. You do that, the rest is cake - ...
5
votes
1answer
838 views

Developer trying to delete a field in a managed package

We are developing an upgrade to a managed package and want to delete a custom field on the Contact object. There is no option to delete it. Are there are any suggestions to delete or hide the field?
5
votes
2answers
702 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 ...
5
votes
1answer
254 views

Date format compatibility

I have received a datetime format not supported to load in salesforce. Can someone suggest a way out here. Format received: 29-JUL-13 01.17.05.335000000 PM SFDC supported Format: 2014-08-18T19:27:...
5
votes
1answer
4k views

Find if field is used in a report

One of the SFDC Admins asked if there is a way I can find out if certain fields are used in any reports/code. I have the code portion covered but I can't figure out how to find if the fields are used ...
5
votes
1answer
5k views

How to update Account object when related AccountPartner is updated/inserted/deleted/undeleted?

I am working on an org with Person Accounts enabled, but I think that my problem applies to regular non-person Accounts as well. I am tasked with writing a trigger to cross-populate spouse ...
5
votes
1answer
154 views

Visibility of required custom field on standard object

I want to create a package which contains a custom field (text) on the campaign object. This custom field is required (I set it required in the schema builder) If someone is installing my package, ...
5
votes
2answers
2k views

apply sorting in apex repeat tag

I'm new in Salesforce. I've created a custom field (type text (10) ) in accounts. I want to group accounts by text (level 1, level 2, level 3) and add drag and drop to move account in groups. Thank ...
4
votes
2answers
11k views

What is the object that stores "files"

Which object stores the files (not attachments)? I'm looking to access this via a trigger. Is it possible to add a field to this document/file objects?
4
votes
2answers
1k views

Case Sensitivity during Field Creation

I noticed something odd in the way Uniqueness is worded when creating a new field. The two radio buttons are worded as: Treat "ABC" and "abc" as duplicate values (case insensitive) Treat "ABC" and "...
4
votes
2answers
5k views

Find fields that are not in use

Scenario In my grown org (200 objects, thousands of fields) some fields are not in use. We define as not in use by the following criteria: (A) No records for the whole object or (B) not populated ...
4
votes
3answers
13k views

Date Formula to Calculate date excluding weekends

I have a formula that is calculating the date from another date field + number of days and returning a date. test census dates field = Confirmed_Enrolled_Date__c + 16 I want to exclude weekends ...
4
votes
2answers
5k views

Greyed out fields on object settings in permission sets

I am trying to give edit permissions for my partners on a custom object, but on the same time, I need them to have READ only on some of the fields that they see. The custom object includes a text ...
4
votes
1answer
3k views

Custom Field Limits For Managed Packages

The documentation on global limits says this: The custom objects contained in a managed package publicly posted on the AppExchange don't count against the limits for your Salesforce Edition. ...
4
votes
1answer
3k views

Trigger to update child with parent values

I currently have this trigger which updates the Parent of the record being saved with field values from the GRANDparent of the record being saved : trigger updateParentwithGrandparent on ...
4
votes
1answer
655 views

Custom field from package not editable

We have added a custom Picklist field to the Contact object with a few default options. In DE everything works great and looks fine. Upon installing this managed package in our Production site and ...
4
votes
1answer
295 views

Creating an encrypted text field through metadata deployment - invalid length, maximum is: 255

I defined an encrypted text field with a length of 255 and deployed it to my org. <fields> <fullName>Field__c</fullName> <externalId>false</externalId> <...
4
votes
2answers
3k views

Multiple Many To Many Relationships on same Custom Object

Forgive me, I just started Salesforce development this week so I don't know many of it's methodologies and idiosyncrasies yet. Let's say I need a Custom Object to represent computer parts ...
4
votes
3answers
2k views

How to access custom fields in Javascript

How to access custom fields in javascript? I have Account with both standard and custom fields. I use the default Page Layout to display and edit any acc. It is necessary to populate some of fields ...
4
votes
2answers
4k views

Field History Not Updating

I am tracking a custom Date field on the Account object because some of my records have mysteriously been updating. I've noticed that the field history takes note of my deleting of the value, but ...
4
votes
1answer
211 views

Reusing Lookup Fields in Different Contexts

I'm trying to decide how to build my data model and I'm running into a typical situation involving lookup relationships. I'd love some thoughts on implications and best practices: I have several ...
4
votes
1answer
173 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. ...
4
votes
2answers
2k views

Deployment Error "The summarized field in not deterministic"

Question Has anyone gotten the following error when deploying roll-up summary fields and knows how to resolve? objects/My_Object__c.object (My_Object_c.Rollup_c) -- Error: The summarized field ...
4
votes
1answer
388 views

Some custom fields automatically created when creating a new salesforce development instance

When I created a new SFDC instance, In Account object setup i saw some custom fields like SLAExpirationDate_c ,NumberofLocations_c (not created by any user). Same case for contact and other standard ...
4
votes
1answer
217 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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
435 views

Date of trigger field a day ahead

I have a field Last_Call_c date and has a trigger but the date request is a day early. My code trigger CallDate on Task (after insert, after update, after delete) { Set<Id> con_set = new ...
4
votes
1answer
583 views

Mapping Custom Fields to Contact Roles

I am trying to map a Custom Field in a Contact to the Contact Role section on an Opportunity and can't figure out how to map them out. Any advice? Is this even possible?
4
votes
1answer
488 views

Uninformative error when trying to delete a custom field in Schema Builder

Was trying to delete a custom field on the User table, in a Developer Pro sandbox and I got this error message. "Unable to complete the requested data change". Any ideas?
4
votes
1answer
8k views

Trigger to update custom field from another custom field on a separate object

New to Apex and while I'm normally able to edit / manipulate code I'm struggling with the nuances of SF and the references to certain things. From looking round the board I've found the following code ...
4
votes
1answer
1k views

picklist in Custom Settings Alternative

i am using custom Settings and one field is of type Picklist. one option is to choose a text field and put a validation on this field if user enter this value then its accepted else not .any better ...
4
votes
1answer
1k 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 ...
4
votes
1answer
170 views

Change in ImageServer Behavior?

We have an app that manages images in Salesforce. Part of the functionality is generating Document records that are externally available, then saving the externally available link in a field on a ...
4
votes
1answer
2k views

Adding new fields to custom objects in managed package

I am a newbie to salesforce and still evaluating the platform for building products. The product needs to be sold as a managed package. The product many need to be customized by the clients to suit ...
4
votes
2answers
1k views

Hyperlink only in the list view not in the detail/edit mode

Im creating a cutom object 'Custom Case' exact replica of Case object. Subject is hyperlinked to the Case detail view in the list view. But it is not hyperlinked in the detail view and edit mode. How ...
4
votes
1answer
6k views

Can I create a custom field in a report

I have a report on events which includes three checkbox (Boolean) fields: Attended, Canceled, Waiting List. I would love to either create a custom field for just the report or a bucket field with ...
4
votes
2answers
3k views

Editing a custom field of a Managed package object

I am using an app deployed using a managed package. I've added a custom field to one of the package's custom objects. When I'm trying to edit this new field I see it does not appear on the detail page ...
4
votes
1answer
702 views

Residue from managed package problem

I installed and then uninstalled a managed package on a sandbox multiple times. Then when I last tried to install the package again it gave some wierd errors(5 of them): (Activity.Custom_Field__c) ...
4
votes
1answer
797 views

Autopopulate Custom field when Lead is converting

When I am converting Lead I wants to auto populate field before lead is converting screen. In Lead I am have custom field named "Campaign name" and In task section I have created custom field named "...
4
votes
1answer
809 views

How can I see a view of all unique fields for an Object?

I can see all of the fields listed on the Object page, but there is no column that indicates which fields have been checked as unique. How can I see what all of the unique fields are for an Object? ...
4
votes
0answers
1k 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 ...
4
votes
2answers
261 views

Salesforce Lightning and Classics showing different values

I came across a weird issue. I have a percent field with precision up to 4 decimal points. We have some calculations which populate the value of that field. What I can see is after calculations if the ...
3
votes
3answers
1k views

Clearing out fields which are nearly or never used

I have noticed that on each object, I have like 20-40 custom fields. Some have clear names, while others are so esoteric that I have no clue why they were created, and or what are they used for. Is ...
3
votes
3answers
20k 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 ...
3
votes
2answers
5k views

GROUP BY custom field

I'm doing this query: SELECT ID, Name, Email_Domain__c FROM Contact GROUP BY Email_Domain__c And I'm getting this error MALFORMED_QUERY: GROUP BY Email_Domain__c ^ ERROR ...

1
2
3 4 5
19