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
Fetching data from sap to salesforce using apex class
/page/Apex_Web_Services_and_Callouts
You can then use the generated Apex to programmatically call out. … This document has a good overview: http://techblog.appirio.com/2013/02/best-practices-for-apex-callouts.html …
0
votes
Is there a static code analysis tool for Apex?
The force.com security scanner http://security.force.com/security/tools/forcecom/scanner and its paid companion product from Checkmarx also does some code quality assessments as well.
0
votes
Faile to send email due to SINGLE_EMAIL_LIMIT_EXCEEDED
Salesforce limits are described here: https://login.salesforce.com/help/doc/en/salesforce_app_limits_cheatsheet.pdf
Using the API or Apex, you can send single emails to a maximum of 1,000 external … Our use case was a custom email composition window which required the emails to be sent via Apex. …
6
votes
Get the body of Chatter files?
If you query the ContentData column from the FeedItem object you should return a base64 encoded version of the file.
Keep in mind the following
I believe SOQL will return only 1 row because it cont …
1
vote
Create CSV file bigger than 15 MB from within Force application (no dataloader, etc.)
You can use the Bulk API and do it all from the command line with curl (well, almost all)
http://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_code_curl_walkthrough.htm
This wou …
5
votes
String concat vs string format in Apex?
I doubt there is a discernable difference to either approach. Perhaps there is a Salesforce engineer who could give deep insight in the benefits of one approach over the other.
From a readability PO …
17
votes
1
answer
3k
views
Detecting System Mode in Debug Log
I'm attempting to ascertain if a block of code is running in System mode via the Debug Logs
I have log entries which appear as such:
21:26:05.741 (2741491000)|SYSTEM_MODE_ENTER|true
..
..
21:26:05.7 …
10
votes
2
answers
2k
views
Sending HTML emails with inline images via SingleEmailMessage
I have a requirement to send inline images in HTML email using SingleEmailMessage.
I seem to be stopped by an unresolvable problem caused by a gap in the Salesforce API.
Inline images require me to …
9
votes
Accepted
HTTP method DELETE doesn't support output
I'd suggest you need to avoid the call to setBody() when making a DELETE call
I doubt DELETE permits an http body of any size.
0
votes
Can I store information even if the trigger throws an exception?
If an exception is thrown in your code and you do not attempt to catch it, then SF will roll back the transaction and throw away any data inserted up until the exception is thrown.
On the surface, th …
1
vote
Site sometimes incredibly slow - Apex code execution sleeps for several seconds - any chance...
I'd raise this with support if you have a Developer support agreement as it most likely involves issues far outside your control.
My most likely 'guess' is that its a Java Virtual Machine garbage col …
1
vote
How to Check if a File is Encrypted or not?
By the time the file gets to the server in order to be checked to see if its encrypted it has already been transmitted over the network. Which makes checking to see if its been encrypted for 'secure' …