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

learn more… | top users | synonyms

4
votes
1answer
24 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 ...
2
votes
2answers
35 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
20 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
21 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
34 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 ...
6
votes
1answer
191 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
34 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
28 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
33 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 ...
4
votes
1answer
88 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
82 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
132 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
65 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
186 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
133 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
71 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
134 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
73 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
173 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
41 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
273 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
104 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
103 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
124 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
151 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
39 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
102 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
539 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
57 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
43 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
109 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.
8
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
286 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
67 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
43 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?
4
votes
1answer
106 views

Fields should be displayed only in detail view not in the edit mode

I'm creating a custom Object which is exact replica of Case Object. I have few fields like Contact Phone and Contact Email which is displayed only in the detail view but not in the Edit mode. Please ...
3
votes
2answers
172 views

Text to Columns Function in Salesforce?

Is there a "Text to Columns" function or app (similar to the Text to Columns Data Tool in Excel) in Salesforce? Some of my data sets are too large for Excel to handle prior to uploading into ...
2
votes
1answer
28 views

Managed App Field Visibility Control

We are working on an app that implements a schedulable batch class to import data for leads. We would like user-level control over who can see the custom fields with the data from the app, so the ...
0
votes
2answers
165 views

formula field help

i have a lookup field that selects a customer name and need to show in the other fields all information about this customer.. How can be the formula in one of this fields? in plsql will be select ...
2
votes
2answers
667 views

Copy custom fields from leads to contacts

I have a large amount of custom fields under leads, and now we want to make some of those people into contacts. Is there a way to copy the custom fields to contacts, so I don't have to recreate them ...
2
votes
1answer
24 views

Need to find when Account field on opportunity enabled for tracking,

In Opportunity field tracking, we have account field tracking enabled. This field was enabled for tracking few days ago. I want an exact date when this field was enabled. how can i find it.. Please ...
2
votes
2answers
335 views

Abbreviating/masking website name (URL) as plain text in URL field

I have this field of type URL on the Accounts page and need to represent the extremely long URL value with common plain text. To illustrate, instead of this: I need to have something like 'BH ...
3
votes
3answers
867 views

Converting Long text area to Rich Text area does not interpret the the HTML tags

I have a field which is currently of type Text Area (long) but has HTML tags in its content. I want to convert it to Rich Text Area but the no formatting is applied after conversion. Is there any work ...
2
votes
0answers
91 views

Custom object not displaying name of included custom object

I have a custom object named Notes (Notes_c) living within Opportunities. Notes lets me put in a bunch of great information about my latest meeting, including a list of attendees. I can include ...
0
votes
1answer
799 views

DescribeSObjectResult.Fields contains fields that do not appear to exist?

I am using the force.com SOAP API (Partner WSDL) to query one of our Salesforce orgs and retrieve a list of all objects and all fields of each object. This seemed pretty simple as I could quite ...
2
votes
1answer
862 views

Dynamically displaying, adding, and deleting attachments from email template before sending email

-> A custom link on the contacts page invokes a VF page -> This VF page simulates the Send an Email page while auto populating a predefined email template: <apex:page standardController="contact" ...
3
votes
1answer
1k views

Months between two dates

In my trigger i would like to calculate the number of months between two date. For Example if the date format is (DAY/MONTH/YEAR): START DATE : 07/10/2013 END DATE: 12/01/2014 Number ...
9
votes
1answer
2k views

How does SalesForce calculate Data Storage usage amount?

My company has recently exceeded our data storage cap (at 102% right now.. :/ ). A large portion of the data that pushed us over our limit was due to an import of records. The weird thing about this ...
2
votes
2answers
687 views

Add field to contact lookup \ create New window

When entering a new case, employees need to search for a contact, simple enough. When they can't find the contact, they add a new one by pressing the New button from the lookup window, still simple. ...