Day: August 9, 2016

Cancel PageReference

Favorite

Read more

Util: Creating exception

Used something like this:

Favorite

Read more

How to get RecordType Id

Favorite

Read more

Map w/ Id and List of Records

Lets assume that you have a Account and that Account can have any number of Accounts under it, or the other secanrio can be you have Case and that Case can have any number of cases under it for that you will need Map

Favorite

Read more

Iterating over a Map

One way to code it is to use a keySet() method of the Map. Firstly you will get all Id’s (keys) from the map and then will iterate over that set of keys. Based on the key you can then get a corresponding set of field data: Map Methods

Favorite

Read more

Multidimensional Array in APEX

Because Lists can contain any collection, they can be nested within one another and become multidimensional. For example, you can have a list of lists of sets of Integers. A list can contain up to four levels of nested collections inside it.

Favorite

Read more

Using the conditional ? : (ternary) operator

or

Favorite

Read more