Monthly Archives: June 2013

Apex Method of the Day – Method (and other) Declarations in Anonymous Blocks

An anonymous block is Apex code that does not get stored in the metadata, but that can be compiled and executed using… Developer Console, IDE [or] The executeAnonymousSOAP API call A method can be defined and called within an Anonymous Block: Decimal d1 … Continue reading

Posted in Documentation | Tagged , | 2 Comments

The Secret Life of an SObject: Defaults

Default values, dirty field tracking, checkboxes / booleans, and the Winter’13 loadDefaults argument… When creating custom objects, we can define default values for our fields which are automatically applied when inserting records. Defaulted when? Say we have a custom Sales … Continue reading

Posted in Documentation | Tagged , , , | Leave a comment