Trigger Context Variable:

Context Variables allow developers to access run-time context of any trigger.

These context variables are contained in System.Trigger class.

Types of context variable: 

trigger ApexTrigger on Account(before insert) 


    for(Account acc:


         acc.NumberOfEmployees = 100;



Note: This sObject list is only available in insert, update & undelete triggers and records can only be modified in before triggers.

Our Recent Blog

Share This Post