Automate SVN/Git Backups of Entire Salesforce.com Organizations

The following solution involves two popular SCM tools (SVN and Git), an always‑on server (I use Windows, but the cloud works as well) and a few free tools. You will need the Force.com Migration Tool, Apache Ant, and Java JDK. Start by setting things up with the following checklist: Java JDK Apache Ant Force.com Migration Tool Cygwin Shell or Git Bash SVN Client (if using SVN) Setup Create a working folder and scripts: ...

October 17, 2013 · 2 min · Andrea Azzola

Dealing with Salesforce Maximum Debug Log Size

When working with Apex code that iterates a lot, you may encounter a truncated log. The error looks like this: MAXIMUM DEBUG LOG SIZE REACHED At the time of writing, the maximum allowed size for a debug log is 2 MB. The default monitoring level for Apex code includes a lot of clutter you usually don’t need (like METHOD_ENTRY, METHOD_EXIT). By common practice, you should put a log filter on the monitored user, or on the classes involved in the transaction by using an override flag. ...

July 18, 2013 · 1 min · Andrea Azzola

How to Log HTTP Requests with PHP

Note (2025): This post was written in 2010. The sample uses ereg, which has been deprecated in PHP 5.3 and removed as of PHP 7. Use preg_match or other modern approaches for production code. The article remains here for archival and historical interest. Sometimes you need to understand precisely how the HTTP request is submitted to the server. If you’re working with Salesforce.com, you probably don’t have easy or intuitive tools to understand how a message is serialized and sent by the runtime to the server. ...

May 27, 2010 · 1 min · Andrea Azzola