Post Your Idea
15,400  Points
In Development
Under active development by Salesforce. No commitment or firm timelines on delivery.

Add "Switch" or "Case" Statement to Apex

Add a statement in Apex that is comparable to the "switch" statement in Java or the "Case" statement in other languages like VBA. Use of these statements is much more effective from a coding standpoint that extensive nested "… Show more

227 comments · 9 years ago

90  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Allow the use of Test.getStandardPricebookId when running APEX tests in parallel

It is great to be able to run tests in parallel and it is also great to be able to use the method "Test.getStandardPricebookId()" to avoid the use of seeAllData annotation in test classes. Unfortunately, when using the annotation @isTest… Show more

0 comments · 6 days ago

3,730  Points
Product Team Review
Idea is being reviewed by Salesforce. We'll post an update in 2-4 months.

Getting Picklist values based on Record Type

Currently, In Apex, we get all the picklist values regardless of which Record Type it is assigned to. It would be very helpful to extract picklist values based on particual Record type. Show more

56 comments · 5 years ago

6,330  Points
Product Team Review
Idea is being reviewed by Salesforce. We'll post an update in 2-4 months.

Allow triggers on Account Team Member Object

Allow triggers on Account Team Member Object.  It would be nice to be able to use a trigger to manage account teams instead of having to use web services or a batch job or create custome objects to replace the account team object becuase of the lack… Show more

111 comments · 6 years ago

3,670  Points
Product Team Review
Idea is being reviewed by Salesforce. We'll post an update in 2-4 months.

Get RecordTypeInfos by API name method

Working in multi-language environments, we sometimes have to face problems with the translated values for RecordTypes. We had the following case: Created a trigger for case of Recordtype "Reklamation" (=Complaint), which used Id… Show more

62 comments · 6 years ago

80  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Bind List of String to SOQL SELECT Clause

As an APEX Developer, it would be extremely useful to allow me to bind a List<String> fieldApiNames to an in-line SOQL Query so I don't need to use Dynamic SOQL with a query string. Especially looking forward to Lightning Implementations… Show more

0 comments · 8 days ago

4,060  Points
Product Team Review
Idea is being reviewed by Salesforce. We'll post an update in 2-4 months.

Apex Reflection

Build an API in Apex similar to java reflection. This would allow invocation of fields and methods on objects whose names are not known until runtime. For more info on reflection see: http://en.wikipedia.org/wiki/Reflection_(computer_science)

51 comments · 8 years ago

4,020  Points
Product Team Review
Idea is being reviewed by Salesforce. We'll post an update in 2-4 months.

Add Apex API for Custom Labels

Custom Labels can ONLY be referenced in apex code as in the following: String labelValue = System.Label.my_label; The value returned will be the label's translation for either the current user's language or if specified, the language for… Show more

61 comments · 7 years ago

110  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Schedule/Unschedule Reports via Apex

I would like to call an Apex class upon sandbox refresh which... Queries all reports for those which are scheduled.Removes the schedule for each report.Saves the batch of modified reports, now schedule-free. I often have allow email deliverability… Show more

1 comment · 6 months ago

3,770  Points
Under Consideration
Idea is being considered for release, but development hasn't started. We post updates every three releases.

Apex describe information should also give Field ID's

If you are planning to default input field values in an edit page for an Sobject, then you need to use something cryptic, like LKID hack. This hack requires you to pass field’s IDs as URL query params with default values for each, like:https://na1… Show more

39 comments · 5 years ago

1 to 10 of 79 | Next