In last week’s post, we discussed the application of Apex Code in Salesforce deployment, looking at its ability to enhance the way employees use Salesforce CRM in client-side programs based in the browser versus the Salesforce server. At the same time, it’s also important to understand some fundamentals around how Apex code works to fully realize the breadth of capabilities it offers developers, as well as the flexibility it brings to existing, proven applications already running in your organization. Today’s post explores some of the background on how Apex code works, and some common ways it is used in business settings.
To begin, Apex is a ‘strongly typed’ language, meaning that the programmer must declare the data type of a variable when that variable is first referred to — data types include standard selections such as Integer, Date, and Boolean, as well as more advanced types such as lists, maps, objects and sObjects. Designed to be simple to use, Apex code has roots in familiar Java syntax, featuring recognizable elements such as Salesforce Object Query language (SOQL) queries, Data Manipulation Language (DML) operation, control structures, arrays, and variable declarations. Read More