Context variables in triggers At Trigger we have 12 types of context variables that fire on the trigger: IsInsert :- Returns true if this trigger was fired due to an insert operation, from the Salesforce user interface, Apex, or the API. IsUpdate :- Returns true if this trigger was fired due to an update operation, from the Salesforce user interface, Apex, or the API. IsDelete :- Returns true if this trigger was fired due to a delete operation, from the Salesforce user interface, Apex, or the API. IsBefore :- Returns true if this trigger was fired before any record was saved. IsAfter :- Returns true if this trigger was fired after all records were saved. IsUndelete :- Returns true if this trigger was fired after a record is recovered from the Recycle Bin. New :- Returns a list of the new versions of the sObject records. This sObject list is only available in insert, upd...
Comments
Post a Comment