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

I have created a custom lookup field. But the records are not displayed in the related list of the parent object

I have created a custom lookup field. But the records are not displayed in the related list of the parent object. Suggest me what needs to be modified or checked
1
vote
1answer
7k views

How do you create a Mail Merge template that contains an object's custom fields?

I am trying to create a Mail Merge Template in Word 2013 for an instance in Salesforce that has Extended Mail Merge enabled. The "template" document needs to populate information from fields on the ...
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?
1
vote
1answer
968 views

Double-click instead of single-click for custom SObject checkbox

I have the following Visualforce page in the Contacts page layout: A single click will, as expected, toggle the checkbox selection and update the SObject field value. This is all good. However, I ...
8
votes
1answer
13k views

Custom link to download/export report in single click

I have a custom link titled Download on my Contacts page layout that when clicked currently takes me to the Export Report page with standard buttons Export and Done. I used the URL content source /...
3
votes
1answer
138 views

updating the data with new field impacting lastmodifiedby and salesforce internal error

I have the ContentVersion object, where I have a custom field called Year__c, which was initially set as text but I need to change it to a number field. but If I change it to number field, Salesforce ...
1
vote
2answers
3k views

Hiding Custom Fields of a Custom Object

I want to hide/show few custom fields if a specific value is selected in one particular custom field. Is it possible?
6
votes
1answer
3k views

Creating a custom field from a SOQL query

We have a custom Object and our Opportunity objects have a Lookup field to the Object. However, when we go to add a Roll-up field to Object that shows the total Opportunities attached to the Object, ...
1
vote
1answer
140 views

Co-owner field in Account

I have a field called Co-ownere in "Account" Object where I need to query from the field. In the field I have 2 owner value seperated with ';'. So I want to know What I need to do So that I can ...
8
votes
1answer
211 views

How to Output Account Name Merge Tag with Dashes

When I use the account name merge tag {!Account_AccountName} to output the name of an account in an email message it shows up something like: Georgia’s Hair Salon. However, I'd like to somehow be able ...
3
votes
2answers
193 views

Trigger only updates on odd numbered input and not even

trigger trig_Opportunity_CreateOppOwner on Opportunity (before update,before insert) { List<id>OppsID = new List<id>(); //List that will hold all id of all new Opportunities owners for(...
10
votes
1answer
793 views

<deprecated>false</deprecated> randomly appears in object metadata in managed package. Why?

Sometimes when I commit the latests changes in my managed package to my version control I see those changes in the XML metadata of my custom objects. I heard that Salesforce.com is working on some ...
8
votes
1answer
8k views

Custom fields not useable in Approve/Reject Approval Request

I'm trying to get through my first SalesForce mod and it's definitely been a rocky path. I have one task I'm trying to do, but this section is holding me back. I have two custom fields. One a pick ...
0
votes
1answer
3k views

How to get the ID of Custom Object

Can anyone please tell me that how to get the ID of Custom Object like, I am loading all the Custom Object by describeglobal() and than setting the name, label and plural label as the datasource for a ...
1
vote
1answer
351 views

Incompatible Decimal Element Type For Integer Set

Not understanding issue with code below. The Schedule_Development_r.YearNumber_c field is a formula field that returns a number (4,0). Its there to convert a picklist of years such as '2013', '2014' ...
1
vote
1answer
5k views

How to Insert Records into Custom Object by C# Code

I am using MetaData API to create the custom object and custom field, but problem is how to insert the data into that Custom object ( Entity ) ,,eg I have created one Custom object Employee and ...
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 ...
1
vote
1answer
2k views

Open network drive from Salesforce field or a custom link

I tried creating a custom field and a custom link on standard object with the link: file:///Users/sk/downloads/index.html It doesn't open a new page at all. Even if I try open as a new tab/new window, ...
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
-1
votes
2answers
467 views

insertions of record automatically while installing

I have created a product which contain a custom setting. In the custom setting it contain a record. I have the product as package and installed it into an new env but after installation the user need ...
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 ...
1
vote
3answers
2k views

How to create a custom field in test class

I have a custom setting which holds all the fields of an object. If i created a new custom field on the object it is need to get inserted into custom setting and for this i have written code which is ...
15
votes
3answers
15k views

Finding if a custom field is editable using Apex code

I am reading the custom fields of a custom object Custom__c and then for each field I am inserting a new value: Public Custom__c custom1 {get;set;} Map<String, Schema.SObjectField> map = ...
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
1answer
2k views

Custom New Button that creates record of specific type and parent record in Visualforce Controller (No URLFOR!)

Sorry for the lengthy title. But I want to make sure that I was not able to solve my problem with the standard answers to questions like this. I have a CustomObject_c that has many record types and a ...
2
votes
2answers
141 views

Custom field showing a field from the first of multiple custom object entries

I have a custom object that we use for test scores for our students(contacts). A student can take the same test multiple times. My goal is to create a custom field in the contacts object that shows ...
2
votes
1answer
1k views

How can I expose the content of a Product custom field (txt) to quote line item field (txt)

I have a custom field (Text) on each Product called Production Code. I need for that field's data to be entered and editable in a custom field (txt) on Quote Line Item. The Production Code copied ...
1
vote
1answer
205 views

High Volume Portal User Custom Field on Formula Field

I have created a custom field on the User Object - Canvas_Id__c ... This value is only populated when the user is a high volume portal seat user. I have a custom object Student Task where I want to ...
1
vote
1answer
98 views

Creating a custom "Developer API Name" field on a custom object

I need to have a field that takes the text value of another field, and creates a developer API name out of it. Ie. Object__c.Name = 'FAQ: How to use salesforce?' gives Object__c.APIName__c = '...
1
vote
3answers
497 views

Markup in Richtext field seems to be trimmed/modified on save.

It seems to me that the markup inside of Salesforce richtext fields is somewhat stripped/trimmed when saving? My code relies on the fact that an image has an multiline alt attribute (which is valid ...
0
votes
1answer
744 views

Can I reference a custom object from a standard object

Say I have a custom object, Division, that has two fields: name and address. Say I want to make 2 custom fields in User (standard object): field 1 is the User's Division: a picklist, populated by ...
0
votes
1answer
56 views

How do I associate an email address with an account?

I have emails associated only with accounts that I would like to import to salesforce. How does one add custom field to an account, and does this then appear in the import wizard?
2
votes
1answer
664 views

How to link account to pricebook

I'm working on an application in which it should be possible to link an account to a pricebook. Because for different accounts, different prices may be appropriate. Is there a way to directly link an ...
1
vote
2answers
229 views

Schema builder not deleting fields as billed

I have tried to delete fields on objects such as Opportunities, as Salesforce has supposedly made it possible to do so in Schema Builder, but when I right click on the field and select 'delete' it ...
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?
3
votes
3answers
8k views

Custom field is not visible/editable after creation (Professional Edition)

I am able to create a Custom Field on standard object (like Account or Contact) via API. I see this field was created in Salesforce UI as a custom field. But, whenever I describe sobject via API - I ...
2
votes
1answer
2k views

How do I run an integer validation rule against a Number(x, 0) field?

I see in the Number documentation that Salesforce does some rounding, but I'm observing truncation. In the Number Validation Rules from Salesforce there is a Number Must Be an Integer validation rule ...
3
votes
4answers
1k views

How do I get a custom object to display a relative URL?

I created a Custom Object with a Rich Text Field. The custom object is accessible internally to Salesforce as well as externally in our Customer Portal via a VisualForce page. In the text field for ...
6
votes
2answers
2k views

How to prevent duplicates when using date field?

I have a very simple custom object with just two custom fields, a dropdown yes/no and a date. This custom object serves as a related list for account and should get multiple entries with the ...
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 ...
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 ...
11
votes
1answer
2k views

Can I create a polymorphic key from a custom object?

I'm creating a custom object that needs to be related to multiple other objects (but only one per record). I.e. via a ParentId field it could be related to a Opportunity, a Contact, an Account, or ...
1
vote
1answer
2k views

Controlling the data type of a custom field

Can I control the data type of a custom field? I'd like to add a long or integer custom field to an object. On the edit custom field screen I select Number as the Data Type as it seems like the ...
4
votes
1answer
783 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? ...
0
votes
1answer
1k views

Multiselect page from a lookup

Is it possible to relate multiple records to a single lookup field (or) Is there a way to create a multiselect picklist/longtext field and dynamically fill in a related object info in the picklist, ...
0
votes
3answers
829 views

Lookup to User with all the users who are managers of other user

I want to create a lookup field to User in the Custom object. This lookup should display the list of users who are Managers of other users. How this can be achieved. Thanks in advance.
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 ...
3
votes
2answers
108 views

Can I create a static (but update-able) field that I can update in one place and have reflected on all records?

In this situation I would like to have a field for 'LIBOR.' I would like to be able to update this field once/wk, but ideally, I would like to be able to update it once, in one location, instead of ...
1
vote
1answer
6k views

How can I show (on a dashboard) what % one column total on the report is of another column total on the report?

In this situation, I am showing a report of outstanding loans. Each loan has an 'Amount Outstanding' and a 'Total Credit Line' field. Each loan also has a 'Amount Outstanding as a % of Total Credit ...
6
votes
2answers
10k views

Can I add a field to the Attachment object (specifically a picklist to track the 'type' of attachment)?

The title says it all. I would like to add a field to the attachment object to be able to sort/filter based on the attachment's type (eg, 'Will', 'Account Opening Document', 'Correspondence', etc.). ...