Tag Archives: application development

Apex UI Buttons

Apex Code Button

You can execute Apex code from a detail page button in Salesforce, using very basic VisualForce. This blog post offers step-by-step instructions on how, and an explanation of the technology behind it. Continue reading

Ace! Salesforce ERD Data Models Discovered

Chatter REST API Data Model

Every once in a while you uncover a Salesforce documentation gem that makes you feel like you’ve aced Roger Federer at Wimbledon. Just happened! Continue reading

Default Namespaces in Apex

Apex Code

Your org has a namespace, whether you are doing packaging or not. Here is an explanation of that namespace, and how it is used in Apex. Continue reading

Passing Parameters By Reference and By Value in Apex

Apex Code

We will be making a change to the Apex documentation on the notion of “pass by reference”.  Here is a detailed explanation of why the change is being made.

The current Apex documentation says that non-primitive variables are passed by reference:

“Also note that all primitive variables are passed by value, while all non-primitive data types are passed by reference.”

Strictly speaking, this is not true.  The new text will read:

“In Apex, all primitive data type arguments, such as Integer or String, are passed into methods by value