Tagged Questions

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

learn more… | top users | synonyms

0
votes
3answers
73 views

how to make visualforce view fields align horizontally?

Help me I have this I need this Here is my code: <apex:pageBlock tabStyle="Account_Search__tab" title="Search Criteria"> <apex:pageBlockSection > ...
0
votes
1answer
43 views

List Opportunities that have a previous StageName [Advanced SOQL]

I'm trying to get a list of Opportunities that have now "Cancelled" (isClosed=true and isWon=false) stageName and the previous (Penultimate) value was "Active" by SOQL . For example, the Opp X had ...
3
votes
1answer
34 views

Javascript get field ids for URL

I'm trying to replicate the "New" button on a related list. The only difference is that, if a record of that type already exists, then it simple returns an alert. Otherwise the "New" activity should ...
1
vote
1answer
35 views

Is it possible to add Object fields into a list

I want to add object fields into a list. The fields need to contain the data of a certain record. So suppose an Object X has 5 checkboxes. I want to add these 5 checkboxes to a list, BUT these ...
1
vote
1answer
56 views

Master detail field is blank on visualforce page

I have a page that should allow me to select a case number from a master detail field but when the page is loaded the field is not there, only the label. I have tried to add an additional look-up ...
1
vote
3answers
42 views

How to change a field type in production instance using a change set?

We need to change a field type (Number to Currency) in the production instance using a change set. And we can't change the field type directly, because there are references of those fields in triggers ...
3
votes
1answer
51 views

How to get the information of a user who deleted an object?

Salesforce REST API supports the getdeleted endpoints to furnish a list of deleted records for an SObject. The response from the API looks like this { "deletedRecords" : [ { "id" : ...
2
votes
2answers
58 views

Percentage field semantics - 1 or 100 for 100%

What should a user input into a Percentage field to state "100%"? Is there a defined semantics or is this something the creator of the fields has to configure by the amount of decimals and validation ...
1
vote
2answers
25 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
87 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
30 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
27 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
73 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
61 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
69 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
25 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
113 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
76 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
31 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
29 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
59 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
37 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
54 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
278 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
38 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
16 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
25 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
51 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
563 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
33 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
64 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
174 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
173 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
171 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
101 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
415 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
435 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
177 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
288 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
116 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
176 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
58 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
491 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
140 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
139 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
205 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
267 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
49 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
148 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 ...