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
3
votes
0answers
1k views

What is the reason behind not being able to make a custom lookup field (looking up Standard Object) a mandatory field?

Not sure why we cannot make a custom lookup field a mandatory field, when the looking up object is a standard SObject. e.g. Product Holder (Custom obj) has Component lookup field looking up Product2. ...
3
votes
1answer
96 views

Replicating a "Click to Reveal" link

I'm currently trying to replicate the functionality of Connected App's Consumer Secret. Just as a reference, the field looks like this when you first open a Connected App (Setup > Apps > Connected ...
3
votes
1answer
96 views

Is addition of Custom field in Custom object possible using MetaData API

After creation of a Custom object metadata with createMetadata(...), I want to add new lookup Custom Field to it additionally (not at the time of creation). By using updateMetadata(...) method, I ...
3
votes
0answers
349 views

How to convert text field to encrypted when referenced in multiple places? New approach?

We have a text field that is referenced several hundred times in all code, validation rules, WFRs, etc that we'd like to encrypt now. In order to do that, seems like we need to delete it and recreate ...
3
votes
1answer
95 views

Change sObject field type and deploy using API

In this thread, there is a discussion about modifying a custom sObject's type. When I try to change the field's type in the Salesforce UI, I can see an error message with some references to the code. ...
3
votes
0answers
151 views

"invalid domain" creating a Master-Detail field on a junction object

I was attempting to set up a Junction Object in an organization with Person Accounts enabled to link Business Accounts with Person Accounts. I set up the Account Master-Detail on the custom junction ...
2
votes
2answers
3k views

Increment number field by 1 on a daily basis

We're looking to auto increment a number value field on Cases by 1 for every day the case has been open (i.e. auto-increment as long as the case is not closed). What would be the best way to go about ...
2
votes
3answers
1k views

Is there a way to make a checkbox read only but enable it if the probability of an opportunity is 95 or more?

Is there a way to make a checkbox read only but enable it if the probability of an opportunity is 95 or more? Any help is greatly appreciated! Cheers! Rommel
2
votes
1answer
10k views

Custom field in standard object not available in reports on that object

I have a custom field in Accounts called Total Quality Rating. When customizing a report with report type Accounts, Total Quality Rating does not show up in the field list. Why would this be?
2
votes
5answers
2k views

Tracking Custom Field History

What is the best practice to track Custom Fields' history on Custom Objects? Edit: Also, is there any way to include Field History in Reports?
2
votes
4answers
281 views

Can I force a recalculation of objects?

Addendum to How to set a field in oppty based on a parameter of it's products? I have a new CB for our product object. a workflow rule, updates the opportunity product object, when it's created. ...
2
votes
2answers
1k views

Add a custom field to multiple objects

I am working on an assignment to populate the data in a developer sandbox with production data. This activity involves me in populating data for over 50 objects. I am planning to create an external Id ...
2
votes
4answers
6k 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 ...
2
votes
2answers
4k views

Can a formula field be indexed?

I have a formula field called ContactID18__c on the Account object. The formula is CASESAFEID(PersonContact.Id). Can this field be indexed or no because it is a custom field and a formula? Or is ...
2
votes
1answer
3k views

"No such column 'New_Field__c' on entity 'Custom_Object__c'" when querying Object deployed via Change Set

I've deployed an Inbound Change Set at one of my Sandbox instances. With this Change Set there was a new field created on one of the objects. However, the following query: SELECT COUNT() FROM ...
2
votes
3answers
2k views

Tracking History of changes in Custom fields of custom objects

I want to track the history of 5 fields in custom object. I have selected the Track History checkbox against the corresponding fields in Custom Fields & Relationships section of the object.Still,...
2
votes
2answers
642 views

Only allow whole number in field

If a field is of type Number(18,0) and you try to enter say 4.4 then it will truncate the decimal and save 4. Is there a way to alert the user that they are entering an invalid number. This seems like ...
2
votes
3answers
87 views

Date/time to Time

I have Datetime field which outputs data like: 30/04/2016 5:05 PM Now I want to convert it to only time format using formula field Desired result 17:05 How it is possible using a formula field?
2
votes
1answer
7k views

Null or Empty value are allowed in Unique and External ID text field

I have created a text field in a custom object, and checked the option for External ID and Unique only but not the Required option. i want know if this text field will allow a NULL or Empty value ? ...
2
votes
4answers
7k views

Ant - How to deploy a custom field on an "installed app"

We're using Conga Composer. We've added a custom field to the class "APXTConga4__Conga_Template__c" called "Template_Call_Method__c". It's a picklist. When I deploy to a new org I have to be able to ...
2
votes
2answers
3k views

Making custom Field Visible only to certain Role

I need some advice - Aim – to make a custom field visible on the activity but it should only be visble to someone’s Profile Can this be done ?
2
votes
1answer
146 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 ...
2
votes
2answers
5k 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
3answers
2k views

Time Field on Data Load - "value not of required type: 5:33 PM"

I am attempting to insert some records on a custom object that requires a value in the Time Received field, of type Time. Within an existing record (created manually) the value inside the detail page, ...
2
votes
2answers
4k views

How to use Tooling API to get available values from picklist

How would one get the values available values of a System Custom Field? Here are the details of the "System Custom Field": Field Label: "Working Status" Field Name: "Working_Status" API Name: ...
2
votes
3answers
688 views

Checkbox field -

I created a custom checkbox in the opportunity box so that an email is sent out to the team whenever it is checked. Issue is that an email is sent out if someone clones that opportunity. Is there a ...
2
votes
2answers
1k views

Is it possible to roll-up the count of assets on an account?

I cannot seem to get Assets displayed in the list of available objects when creating a roll-up for the account object. Is it possible to roll-up the count of assets on an account?
2
votes
2answers
98 views

Problem updating custom Account custom fields with trigger

First of all, I am new to Apex. I am trying to create a trigger to do the following: when the user adds or updates an account, the trigger takes the billing address and makes a call to the Google Maps ...
2
votes
2answers
242 views

Custom Field as Name Field

How do i set a custom field to be the name field of a particular custom object? So far, I have created a custom object and while doing so I have create a namefield by using: <...
2
votes
2answers
52 views

Is it possible to have ONE Field that performs two separate functions (formulas) for two different Record Type Opportunities?

I have a formula field that adds 12 different fields for one specific Opportunity layout on one specific Record Type. I want this same formula field to add 6 different fields in a different ...
2
votes
2answers
570 views

How to create a custom field outside of the namespace?

I am busy creating a managed package with my own namespace in Developer Edition, and would like to create a custom field on the Lead standard object that does not have my namespace prefixed. I will ...
2
votes
2answers
636 views

Adding a new field to OpportunityLineItemSchedule

We have a requirement to add some extra functionality around schedules. Is there a way to extend this object with a custom field? I can't find it in the Salesforce setup.
2
votes
1answer
228 views

Why is 'Data Type' not defined on my custom field?

Why is datatype not defined on my custom field (circled below)? And how can I define it?
2
votes
2answers
210 views

Import custom fields from WSDL

Is there a way to bulk create custom objects and fields from a WSDL file so I can match the same fields in a dev account?
2
votes
1answer
592 views

Custom Fields <> Data Storage?

I inherited an org that was maxed out on data storage, so I cleaned up the fields per object. The largest issue was Leads, where I was able to remove 100 of the custom fields. However, this did not ...
2
votes
1answer
832 views

Spell Check on custom field

I have a requirement for "Spell Check" feature on a certain custom field (Notes - Long Text Area) of a custom object. I researched and found that if Rich Text Area field can be used instead, but it ...
2
votes
2answers
416 views

Summer'21: OpportunityLineItem always empty for QuoteLineItem. Now how to fill QuoteLineItem custom fields?

While performing regression tests on a Summer'21 sandbox, I noticed that custom fields were not filled in newly created QuoteLineItems. For many years, I have used the trick as described here, and ...
2
votes
3answers
4k views

Identify User that Last Modified Specific Field by using apex

I have a custom checkbox field. I need to know how to identify the last user that changed the custom checkbox field by using an apex code. Is it possible? If so, how?
2
votes
2answers
1k views

What are the functions can be used along with Text Area Field?

I have a custom text field on custom object where i am using CONTAINS to check whether a particular string value is present in that text field or not, same CONTAINS if i try to use on TEXT AREA FIELD, ...
2
votes
1answer
638 views

What's the point of custom fields on external objects?

If they are not mapped to the schema what's the point of creating custom fields on external objects? I have tested with a checkbox field and verified that my changes are not being preserved, as ...
2
votes
1answer
115 views

Apex Conditional with custom number field leads to compile error

I created a custom field in my price book, Tier_1_Limit__c, which is a Number(10,0) field. I'm working with an extension to the Quote's standard controller and I simply want to compare the quantity ...
2
votes
2answers
565 views

How to tell difference between standard field and custom field with same name?

Editing a Workflow Rule Criteria and there is a custom field and a standard field with the same name. (Bad form I know, I didn't make it) How can I tell them apart? Which are listed first Standard ...
2
votes
1answer
2k views

Alternative approach to multiple dependent picklists

Within service cloud, I have a requirement to allow for case categorization. I currently have a hierarchy of 5 dependent picklists: Product Product Area Category ...
2
votes
1answer
4k views

calculate duration spent in custom field status

We are trying to track the duration (time spent in days/hours) in each Status change (Custom Field) on the Opportunities Object. Right now we have enabled field history on this custom field (picklist) ...
2
votes
1answer
238 views

Are custom fields on Managed package objects deleted when upgrading the package?

If I have a managed package installed and I then add a Custom Field to one of the managed package Custom Objects, I then recieve a push upgrade of the managed package, would the Custom Field that I ...
2
votes
1answer
378 views

Apex Trigger to populate custom field on Contract Object with value on contact object

I have a question for you knowledgeable people On the contract object we have a field called “Client Director” which is a look up to the contact record. Field: Client Director field api : ...
2
votes
1answer
1k views

How to load default values in skuid model?

Question When I'm creating a new object in the Skuid page is there anyway for the model to pull in the defaults values for the object? For example, if I've set the default value for the field, ...
2
votes
1answer
720 views

Significance of getRelationshipOrder() in Master-Detail DescribeFieldResult?

For Master-Detail relationship fields, the DescribeFieldResult has a method called getRelationshipOrder(), which, according to the docs: Returns 1 if the field is a child, 0 otherwise. At first I ...
2
votes
2answers
1k views

Master-Detail Relationship on Custom Object from Managed Package

Is it possible to add Master-Detail Relationship on Managed Custom Object? currently I am getting below error
2
votes
2answers
4k views

Creating an Attachments Custom Field for a Custom Object?

We have a custom object in Salesforce and I would like to know if there is a way to add an attachments field to the page layout so that users can upload screenshots if they needed to.I know we can add ...

1 2 3
4
5
19