When speaking of fields specifically on a Salesforce custom or standard object.

learn more… | top users | synonyms

1
vote
2answers
11 views

How can I update the MobilePhone field with the Data Loader?

I'm trying to run a mass update of a group of leads to include data for mobile phone numbers, but the MobilePhone field seems to be missing as an option in the DataLoader mapping setup. (Someone ...
2
votes
1answer
38 views

Reading Long Text Area field with line breaks

I have long text area field, which has data on each line. I am populating a line then hitting "Enter" and then populating the next line and hitting "enter" again and so on. When reading this field ...
1
vote
1answer
17 views

Opportunity created date?

Is it possible to get the Opportunity created date from Salesforce? I don't see any standard fields that hold the data information but when looking at Created By field you can see a date next to the ...
2
votes
0answers
20 views

How to enter Seconds into Datetime fields using the standard UI

Say you have a datetime field Start__c on a pagelayout. Now try to enter a date (we have DE locale enabled, but should be similar in EN): 31.08.2014 14:53 ==> works 31.08.2014 14:53:38 ==> doesn't ...
1
vote
1answer
62 views

All fields not selectable to history track

I have a custom object Address_vod__c. All the fields of this object are not coming for selection in History Tracking window. Is there any way I can make such a field (formula field) available there ...
0
votes
0answers
29 views

Custom fields within fieldset are not visible in VF page

I want to display all the fields field set but out of 4 it is displaying only 1 which standard field I am not able to display the custom field form field set. ...
0
votes
2answers
41 views

How to insert (upsert) an object that has no external id?

According to this documentation, you need to know the external ID field of an object to inset new records. For some of my custom objects, I'm not seeing any fields in the object description that have ...
0
votes
0answers
18 views

Issue with the api name of the field from report

I may VF page I am getting all the reports and from that reports I am getting the filters used for the reports. When I try to use the phone field it retrieve me name as phone1 and when I used First ...
0
votes
1answer
52 views

How to write formula based on pick-list value of the pick-list field

I would like to write a formula to count the number of days based on the conditions mentioned below.. If the Status__c (Picklist field) = Draft, calculate based on Now() - Last modifed date. If the ...
1
vote
0answers
58 views

How to add combination pick-list in any object of salesforce (Standard Fields of object does not meet requirement )

I am new to Salesforce, so i am asking for your suggestion here. How to add combination pick-list in any object of salesforce (Standard Fields of object does not meet requirement ). I have two ...
1
vote
1answer
20 views

Contact.MailingAddress

I have to use the Contact Object's Mailing address in my code. But I am not able to use it in my visual force email templates or formula fields. Please suggest how can this field be used
1
vote
1answer
19 views

How to filter the search in Salesforce global search for displaying data of the field in an object

Can we filter the search to show the results of only one field in the particular object in salesforce global search ? Thanks
2
votes
1answer
44 views

Use List Metadata With Standard Fields?

Question Is there any way to retrieve the "list" details, which include the field id for standard fields? Background I'm building a report on picklist values by record type and am including links ...
2
votes
1answer
29 views

how to change the case creator

I want to be able to change the case creator (I have a workflow rule that fires an email when the case goes to "waiting on update" and sometimes the case creator needs to be updated to prevent the ...
4
votes
2answers
38 views

Indexing Fields WITHOUT Salesforce Help (dates, etc)

I am asking this here because I'm having my usual run-around with Salesforce (we do not pay for Premium or "Developer" support if there even is such a thing) and I'd like to know if someone has ...
3
votes
2answers
160 views

Passing a field value from a page to custom button

Here is the requirement: I have added a custom button on a standard Salesforce page. I want to pass a field value from this standard salesforce page to the button (or the pop up that opens up when ...
1
vote
1answer
29 views

Can a “reference” type field reference more than one table?

Using v31.0 of the Salesforce REST API, when querying metadata for an object, if the object is of the type reference, it will have it's referenceTo field populated with the referenced table. { ...
2
votes
1answer
14 views

How to view inbound relationships

Working with a very large and complex salesforce setup, we have a custom object with several lookup fields to external objects. These are easy to check. I was hoping there would be an easy way to ...
2
votes
1answer
23 views

Dependent field - Any declarative approach?

I have a requirement to show/hide a lookup relationship field in new opportunity page when the campaign equals a certain value. If that was a VF page, I can do it with render attribute. But since new ...
1
vote
0answers
43 views

Populate fields not displayed on page with JS

I've got some script which uses Postcode Anywhere's functionality to retrieve an addresses latitude and longitude and stores them in Lat__c and Long__c custom fields. The fields are not displayed on ...
8
votes
1answer
353 views

What is the best workaround for the 20 field history tracking cap?

Feel like I am missing the point of Field History Tracking. Before going any further, here are the Salesforce Limits from the Salesforce Limits Quick Reference Guide date June 2, 2014: Edition ...
1
vote
1answer
38 views

Trouble finding where in SFDC an outbound email is fired after checking a box on a UI page

I currently have a checkbox which when True, sends an email. I want to change the Email address that this is sent to but I can't seem to find where this action is stored. I presumed it would be a ...
2
votes
1answer
30 views

Is there a simple way to convert any value direct to String in production code?

When I do a System.debug(whatever), SFDC doesn't care whether whatever is a String, a Date, a Datetime, a Boolean, etc... it just makes a string of it and dumps it in the log. But in the following ...
1
vote
1answer
52 views

Get all fields in lookup object

I have a custom object called Job and Job has a couple of Lookup field linking with Group, Account, Contact, Custom Object. If I iterate through each object I got "Too many fields describes: 101 " at ...
5
votes
1answer
122 views

Generating Barcodes in Salesforce

Is there any standard/ acceptable way of generating barcodes in salesforce? I'm exporting some pdf reports and there I need to print a barcode. I found some third party libraries like this. But when ...
0
votes
1answer
137 views

Excel Connector, “An internal server error has occurred while processing your request”, and ID column

I consider myself an expert with Excel Connector. Therefore, I'm perplexed why I cannot figure this out. I think it's a known issue that I'm just not finding posted anywhere. I literally have over ...
1
vote
3answers
149 views

Get field label without doing a loop

Is there a way to get the label of a field without doing a loop on all object fields like this : Map<String, SobjectField> fieldMap = Account.getsObjectType().getDescribe().Fields.getMap(); ...
0
votes
1answer
82 views

Get fields name into a Javascript loop

I do a loop on random fields of Attachment object and I try to get the label of fields. // arr is an array with some random fields of Attachment object for (var i=0, i<arr.length; i++) { var ...
0
votes
2answers
298 views

How to add “Middle Name, Suffix, etc” to the Contact's Name field

Goal: Within a contact, the name field is concatenated in the user view and I would like to add custom fields to this concatenation. Currently, appears this is not possible, though possible I am ...
2
votes
2answers
275 views

Not able to add fields in Related list for a page layout

I am trying to add fields in a Related Cases Related list for a Pagelayout in Case object. I am not able to add fields like Record Type, Case Description etc What could be the reason. I dont see the ...
2
votes
1answer
112 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 ...
1
vote
2answers
212 views

Change the field of another object before insert

I have two Objects : Activities and Services, with each field. I create a Trigger (Before Insert) on the Activity, in the Trigger I would like to modify the fields of a record of the Service object. ...
2
votes
2answers
101 views

How to disable rtf field in visualforce page

I have a requirement where one sf rtf field has to be disabled based on some condition. I am not finding any solution for disabling rtf. Anybody worked on this or any work arounf for this?
2
votes
1answer
175 views

How can I rewrite this code that modifies multiple fields that are named sequentially?

I have multiple fields that are named sequentially, i.e. nv001_c, nv002_c, nv003_c and so on till nv026_c. Is there a way for me to streamline the code below? I know apex is different than VBA and ...
1
vote
1answer
53 views

Combining EmailTemplates - no way to automatically merge fields of templates?

another newbie VS question. This is how far i got (pls cf picture) get a list from available templates from a certain directory add each selected template into editable textarea use the edited ...
1
vote
1answer
407 views

How do I auto-populate some fields on every new lead created

For example, I would like to auto-populate: Decision Timeframe = Immediate Decision Maker = Yes (checkbox) Has Budget = Yes (checkbox) Lead Priority = High Priority Lead Queality = 5 stars. ...
4
votes
1answer
122 views

DescribeSObjectResult contains fields of type reference with an unknown relationship name

I use the SOAP API (WSC, partner wsdl) to describe objects and use the field meta information to dynamically build SOQL queries. Today i observed that DescribeSObjectResult can contain fields of type ...
5
votes
1answer
125 views

APEX: access profile by name in known/predictable language regardless of running user's language [duplicate]

It was recently brought to my attention that for our clients, SalesForce translates profile names (such as "System Administrator") which causes errors when the Apex code attempts to check profile ...
3
votes
2answers
164 views

Make 'Asset Name' field unique

We sell assets to clients with support contracts. All these assets need to have unique names which are generated according to a specific format. We imported all our assets in our SalesForce database ...
0
votes
1answer
230 views

Determine if State & Country Picklists are enabled in Apex

Preamble, can skip: I was helping someone make some adjustments to the Inline Account Hierarchy app from Force.com Labs. Since it's an unmanaged package, and the docs are very clear, you can do some ...
3
votes
2answers
42 views

How to typecast values based on fieldtypes?

How to typecast values based on field types? I have a map of field Types and field Values(in Strings)? how to convert each field Values based on the field Types dynamically?
4
votes
1answer
127 views

How do I specify an account in the Related To field in a custom Global Action Predefined Field Value?

I have created a custom Global Action, and am trying to predefine a value for the Related To field. Related To appears in the picklist of available fields for Predefined Values, so it appears this is ...
2
votes
3answers
647 views

How to add picklist (Field dependencies) for custom objects

I want to add picklist for a custom object I have created. When I navigate to Field dependencies for that custom object and click new the Controlling field and dependent field drop down list are ...
1
vote
0answers
58 views

Is it possible to retrieve list of hidden fields of custom object?

Background. My manager asked me to retrieve all currency fields for many custom objects. Amongst them there was at least one object with many fields which have field access Hidden. Let's call that ...
2
votes
1answer
47 views

Are required fields added by default to a new page layout?

Are all required fields added by default to a new page layout or does it add only a certain set of fields?
3
votes
2answers
141 views

Is there a way to find required fields on an objects?

Is there an easy way to find the required fields for an objects? Is page layout the only way to see visually what fields are required for an object? I am looking for a GUI tool not code.
9
votes
1answer
2k views

Populating Custom Settings field using Apex

I'm trying to populate/set/put/initialize a custom setting's field with a calculated value within my apex code. The field type is number. Is there a way to do this?
2
votes
1answer
324 views

how to assign a JavaScript variable to an standard salesforce field to prepopulate it on an Standar Page Layout?

I made a custom button that prepopulates fields to create a new task and works fine. But I want to assing a js variable to an standard field (in this case Name or evt2 field of Task) and it does not ...
3
votes
2answers
69 views

Format of EmailMessage.ccAddress

I'm writing an EmailMessage trigger for inbound emails and can't for the life of me find information about the format of the addresses in ccAddress. I need to parse the cc addresses. Using ...
0
votes
0answers
48 views

Access “Number of Installments” on Opportunity Product

For use in a custom formula field, I need to access the number of revenue installments. It is displayed in a teaser on the Opportunity Product page, but I cannot access this in a formula. Any ideas?