2.5 Use aggregate statements

The concept

Aside from retrieving values from a specific field, SOQL can also retrieve values from the aggregated result. For example, we can retrieve how much does each customer spend on all the transaction he or she made. In order to do this, we need to utilise Group by and Having clause.

• • •

2.1 Using variables to store information

The concept

There are always things we want to remember. We need to remember which tasks we need to work on. We need to keep track of grocery list we want to buy at the shopping centre. In those cases, if the information is hard for our brain to remember all of them, we write them down in a piece of page or track them down in the computer. So later we can find them.

• • •

1.3 Comments – why are they useful?

The concept

In short, comments are something which is for human to understand the piece of code, but doesn’t make any actual different to computer. Compilers will automatically ignore all the comments you have written in your code. So:

• • •

1.1 An important message

Open Developer Console

There are several ways to write code in Salesforce. For now, let’s use developer console. It is a very good tool for beginners. There are several reasons:

• • •