Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.
1
vote
How to get Platform Event custom field value from Save Result or Database Error in Apex
I know this isn't exactly what you're looking for, but I don't see a way to get the data from the error.
I believe the results come back ordered properly, in which case, something like this should wor …
0
votes
Unable to save new VisualForce pages in developer console
You cannot save Apex of VF pages directly in a Production environment. You need to save them in a sandbox, then deploy. …
3
votes
Accepted
Why use ESAPI for encoding?
The short answer: ESAPI is for security, preventing deliberate attacks; Apex escapeHTML, etc. is for ensuring html displays properly. … Cross site scripting
Do not use the built in Apex String Encoding functions: String.escapeEcmaScript(), String.escapeHtml3(), and String.escapeHtml4(). …
0
votes
Locking rows at the last minute
The best way to minimize locking issues is by minimizing the duration of the transaction. This is a challenge in Salesforce since you can't explicitly commit your transaction (see Idea below).
Supp …
9
votes
Accepted
SOQL Query Where Id "In" Versus "Equals"(=)
I've not seen a difference functionally; I strongly prefer using IN as that is what would be required in SQL, and it is more accurate, and more descriptive.
First_Name__c is not logically equal to a l …
3
votes
How to access Class members decorated using { get; set; }
To clarify the syntax (if hits wasn't static):
count.hits = 1; // calls the "set"
Integer foo = count.hits; // calls the "get"
You can't call count.getHits(). The calling syntax looks just like acc …