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 ...

learn more… | top users | synonyms

1
vote
2answers
21 views

How does the default contact name field on case work?

There is a default field on the Case object that uses a lookup on Contact to display the contacts name. I need to make a custom field on Case that displays a custom text field from the Contact ...
1
vote
1answer
43 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
26 views

Error converting HttpResponse to Dom.Document

I am calling the Tooling API from Apex in order to find out if a Custom Field has been created. Here is my code: HttpRequest req = new HttpRequest(); req.setHeader('Authorization', ...
1
vote
1answer
104 views

Do all developer orgs come with a bunch of custom fields?

I previously installed an app from AppEchange to my developer org, and after a while, uninstalled it. I now have no installed packages. I recently noticed that the standard Account Edit page is using ...
0
votes
1answer
24 views

Object with fields that depend on another field

I have an object that should be displayed like this: I don't want to create repetitive fields D_A D_B D_C etc is there a way I can create a picklist field with the values A,B,C And when I create a ...
1
vote
2answers
32 views

Getting always zero as total in apex:variable

I am getting always 0 as a result of total. I am using apex:vairable, initialing it before apex:block. Inside the apex:block I am adding the field of object i.e number type with apex:variable and ...
2
votes
1answer
22 views

Lead conversion mapping - changing field reference

Our previous admin incorrectly set up our Accounts and Contacts to use a custom "lead_source" rather than the standard "leadsource" used in Leads. This make it impossible (for me) to map lead source ...
6
votes
2answers
63 views

Profile field visibility

If two users are sharing same profile, how can we make one field visible to one user and hiding it from other user.
1
vote
1answer
43 views

Duplicating Opportunity Stage Duration for Custom Field

It's probably been asked before, but how do you duplicate the Stage Duration functionality in Opportunities on a custom field? I have a custom picklist field named "Operations Status" that serves the ...
1
vote
1answer
41 views

Apex class for trigger

I am writing a test class for Contact record update trigger I tried my best but it's not working, please check and give suggestion to improve my code @isTest public class TestStopEmails { static ...
1
vote
0answers
26 views

Want to hide a Custom field which is holding a reference getting used in a trigger

I have got 3 objects 1)Change 2)Requirement 3)CR-Req(junction between Change and Requirement) now we have a related list of CR-Req under Change object which is having a custom button named "New ...
2
votes
2answers
41 views

Contact record update trigger

I am writing apex trigger. I need help with a salesforce automation. Sets a field "My Field" to Yes. This triggers the code. Code finds all contacts with the same email address. Code updates the ...
-1
votes
0answers
13 views

Custom Report for Custom Object History and Account

I need to create a report that shows text field edits made to a custom object grouped by the user associated Account. The users that access these records are customer community users, so they each ...
0
votes
1answer
21 views

Custom fields in a managed package

If you create custom fields in a managed package, will that field be lost when the package is updated?
4
votes
1answer
26 views

Missing 'Required' attribute for Long Text Area fields?

Here is the snapshot for a "Text Area" field, notice that the "required" attribute is available i.e. we can set this field as required: Here is another snapshot for a "Long Text Area" field, ...
0
votes
1answer
22 views

Retrieve data from a WebService and fill Standard Page (Lead) fields

Here's my scenario: I need to create a basic search, based on the custom field "ZipCode__c". User types in the zip code and then I have to use a WebService to retrieve the address information ...
0
votes
1answer
47 views

Relationship between Opportunity and Contract

How to make a relationship between contract and Opportunity ??
1
vote
4answers
126 views

Change sets from sandbox to production

I have moved my custom object(Reservations) with the custom fields(near to 50 fields) created in Sandbox into Production but when i try and create a new res I can use only the standard field of that ...
0
votes
1answer
19 views

Share record(s) based on user custom field?

I have a custom field on my user (customId) that corresponds with the value in a custom field on my object (customId as well). I'd like for a user with the customId of A2 to only see records where ...
-1
votes
2answers
28 views

Put and direct setting sobject value does not show

I am trying to set a custom field of an custom object from apex object.put('field__c','value'); object.field__c = 'value'; Both of these lines do not set the value. However is I log the result of ...
1
vote
1answer
24 views

How do I edit the 'Contact Edit' page layout

I want to add a middle name field to the Contact Edit page. While I can edit the Contact Detail page layout, I can not find a way to edit the page layout for the Contact Edit page.
0
votes
0answers
29 views

Trigger Custom field

I'm very new with salesforce and with everything related to Apex triger. I have a little problem and I guess the solution is not complicated but ... So, When I create a new event, it's always liked ...
1
vote
2answers
47 views

Is it possible to deploy customization from sandbox to production without running Apex code test ?

I have some customization in the sandbox and that customization don't have any Apex code in it. Is it possible to deploy that customization without running Apex run test? The problem is that when i ...
1
vote
0answers
27 views

Workbench showing extra picklist value..Confused!

I recently changed the picklist values from open, ship, invoiced, rejected TO open, ship, deliver, cancel. If I check in detail field page, I can see the new 4 values, but when I query from ...
0
votes
1answer
25 views

How to make custom field on Acc object available but do not display?

I created a new custom field on the account object and this field should be hidden on all the pages but should be there on the HTML. I just want to initialize this field by passing parameter in the ...
0
votes
0answers
20 views

Search user based on custom field on Salesforce1

I have custom fields on the standard User object, one of these is populated using a trigger so that we can search a user using that field as a reference in the global search. As an example, if on a ...
0
votes
0answers
18 views

Populating custom field on Standard Object using SOAP API?

How does one populate a custom field on a Standard Object using the SOAP API in PHP? I am using PHP. $contact->Company = "First"; $contact->FirstName = "First"; $contact->LastName = "Last"; ...
0
votes
0answers
9 views

How to create community groupings for reporting

so I'm trying to create a custom object (if that is even the direction to go) to reflect a "Community" concept we have. This is for internal sales and reporting use right now. Basically, a ...
1
vote
1answer
17 views

De-activating Case assignment rules when deploying a field-type change

I have a custom field on the Contact object. And I changed it from picklist to multi-select picklist. This was referenced in Assignment rules. When I deployed this to another Sandbox, even though I ...
0
votes
1answer
28 views

Need help to make trigger and VP

1.- Create an object called A, with a date field called DateA - Create an object called B, with a lookup field to A and a date field called DateB 2.- Create a trigger that will set the DateA field as ...
0
votes
1answer
32 views

Custom formula field update

I've created a custom formula field on the Lead object named 'Lead Division Region' (for reporting purposes) and its set equal to the $User.Division. The issue I'm having is when the Lead changes ...
0
votes
1answer
24 views

Approval Process - Track Submitter of record

I am trying to track the 'Submitter' of an Approval process in Salesforce. Although I can who submitted the record when I check the Approval History, I cannot seem to create a field that will contain ...
1
vote
1answer
42 views

User can't search on a particular field while other users can

I have a user that is unable to search (sidebar) on an auto-number field on a custom object. The field does have a master-detail relationship with an account, however this user has read all access to ...
0
votes
2answers
71 views

How do I remove the Decimal from a Currency Field

I want to get my custom currency field to show no decimal places, but when I update the decimal number in the customization page to zero, the field still shows 2 decimal places for the currency field ...
1
vote
1answer
119 views

using metadata api to deploy destructive changes to delete custom fields

There is an issue that I would like to get some helps/advices. I'm creating a method in C# using Metadata API to deploy destructive changes to delete custom field as following: Create an empty ...
0
votes
2answers
38 views

Getting “System.NullPointerException: Attempt to de-reference a null object” when attempting to call the cancel function in Apex

I'm making a system for our custom packages. When attempting to assign the packages from a visualforce page to the Opportunity I end up getting this the error. This error only happens when clicking ...
0
votes
0answers
32 views

Changing already created text fields into currency fields?

So I have a really tedious problem. I've been plopped into a SalesForce setup that was created by someone else and they want me to automate our company's billing process a little. The issue is for ...
0
votes
2answers
86 views

Getting an Opportunity Id into a Visualforce page when clicking a list button on a related list?

I'm currently trying to make a system for selecting multiple objects and connecting them to a related list within Opportunities. The last piece of the puzzle for me is getting the ID of the ...
0
votes
1answer
35 views

Using checkboxes to select objects

I am making a visualforce page for my custom object Opportunity Package to add multiple to a related list all at once. In order to accomplish this I will need to know which ones are being selected. ...
1
vote
1answer
56 views

Why am I getting “Error: Unknown property 'Opportunity_Package__cStandardController.Opp_Package_Rel__c' ” from this Visualforce page?

I am currently in the process of making a system for easily adding packages from a list into our Opportunities. This visualforce page needs to be accessible to use as a list button, but ever since ...
1
vote
2answers
39 views

how do i make a custom object name field with a lookup relationship

I have a custom object - responses. I want the name field to have a lookup relationship with the contacts object. Is this possible?
0
votes
1answer
102 views

Having trouble writing Apex trigger on custom object to update a lookup fields

I have a trigger that maps information from one Custom Object (Agents) to another Custom Object (Trident Contracts). I am able to update Seller Agent Name in the Trident Contract Mapping with the ID. ...
1
vote
2answers
106 views

How can I add a new value to a picklist using APEX?

I have queries pulling all of the information correctly but what I can't seem to find was a way to add new options to a picklist using APEX. I currently have Package__c.Products__c.add(new ...
0
votes
1answer
74 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. ...
0
votes
3answers
59 views

Set a max value for a custom field in salesforce of type number

I have created a custom field in a custom object of type Number(2,1) in salesforce. Please let me know how set a max value for this field.
0
votes
1answer
38 views

How can we set field visibility to all profiles for a custom field created programatically using Metadata Api

I have created a custom field for a Standard Object (Opportunity) using Metadata Api. And the field was created successfully. But when I try to edit or create a new opportunity, the custom field is ...
0
votes
1answer
36 views

Default email address on email type field

I would like to give an email field a default email address of 'test@gmail.com' onto every opportunity record in Salesforce. I need to use an an email type field for this (for setting email alerts ...
1
vote
2answers
52 views

Modify field definition using scheduled Apex job

In the current data model of my org, there is a Master-Detail relationship between Account (Master) and Revenue (Detail). I have 12 custom fields on Revenue (January, February, ..., November, ...
0
votes
2answers
83 views

If statement in formula field

I am trying to develop a formula to determinate current days until the end of a campaign. For that i have the following fields Start Date End Date Days from Today to End Date The code that i am ...
0
votes
2answers
419 views

Why Custom Field's (Picklist - Data Type) values are not appearing on VF Page(PageBlockTable-Column)?

I am new to SFDC and started development in Apex and Visualforce Page with tutorials and online samples. So, here what I have tried and got stuck at the point. What I am trying to achieve: 1. In VF ...