InterviewSolution
| 1. |
What Is Trigger.new? |
|
Answer» Trigger.New is a command which returns the list of records that have been added recently to the subjects. To be more precise, those records will be returned which are yet to be SAVED to the database. NOTE that this subject list is only available in INSERT and update triggers, and the records can only be modified in before triggers. But just for your information, Trigger. old returns a list of the old versions of the subject records. Note that this subject list is only available in update and DELETE triggers. Trigger.New is a command which returns the list of records that have been added recently to the subjects. To be more precise, those records will be returned which are yet to be saved to the database. Note that this subject list is only available in insert and update triggers, and the records can only be modified in before triggers. But just for your information, Trigger. old returns a list of the old versions of the subject records. Note that this subject list is only available in update and delete triggers. |
|