
7 answers
Hi Rohit,The Trigger.New List contains the new record that is coming to the database and Trigger.Old list will hold the existing data that is already present in the database. In the above example the trigger is simply checking whether the email value that is coming into the database matches with the existing value. If it doesn't match then it will throw an error with the message "Email cannot be changed".Hope that makes sense !