Comparing old and new values in an apex trigger

When developing solutions in triggers you sometimes have to know what the original values of the record was and compare them to the new updated values that caused the trigger to run.

Here is an example on how to check old values against new values:

 

Add Comment