Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
1) isExecuting Returns true if the current context for the Apex code is a trigger, not a Visualforce page, a Web service, or anexecuteanonymous() API call. 2) isInsert Returns true if this trigger was fired due to an insert operation, from the Salesforce user interface, Apex, or theAPI. 3) isUpdate Returns true if this trigger was fired due to an update operation, from the Salesforce user interface, Apex, or theAPI. 4) isDelete Returns true if this trigger was fired due to a delete operation, from the Salesforce user interface, Apex, or theAPI. 5) isBefore Returns true if this trigger was fired before any record was saved. 6) isAfter Returns true if this trigger was fired after all records were saved. 7) isUndelete Returns true if this trigger was fired after a record is recovered from the Recycle Bin (that is, after an undelete operation from the Salesforce user interface, Apex, or the API.) 8) new Returns a list of the new versions of the sObject records.Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers. 9) newMap A map of IDs to the new versions of the sObject records. Note that this map is only available in before update, after insert, and after update triggers. 10) old Returns a list of the old versions of the sObject records.Note that this sObject list is only available in update and delete triggers. 11) oldMap A map of IDs to the old versions of the sObject records.Note that this map is only available in update and delete triggers. 12) size The total number of records in a trigger invocation, both old and new. http://amitsalesforce.blogspot.com/2015/10/trigger-context-variables.html
Salesforce supports several types of triggers that can be used to automate actions based on specific events. Here are the trigger events that are available in Salesforce:
Before Insert
Before Update
Before Delete
After Insert
After Update
After Delete
After Undelete
In total, there are seven trigger events in Salesforce.
Want to learn more about Salesforce triggers? Check out this link at https://arrify.com/triggers-in-salesforce/ for comprehensive information on triggers in Salesforce. This article covers everything from the benefits of using triggers, to tips and best practices, and even how to hire a developer to set up your triggers. A must-read for anyone looking to automate their processes in Salesforce!
There are 7 different Events in Trigger
1)before insert
2)before update
3)before delete
4)after insert
5)after update
6)after delete
7)after undelete
And you can refer below link for more information.
https://trailhead.salesforce.com/en/modules/apex_triggers/units/apex_triggers_intro
Thanks
May I suggest you please check the trailhead module on triggers.please check the link below.
- https://trailhead.salesforce.com/modules/apex_triggers
- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers.htm
Hope it will be helpful.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
1) isExecuting Returns true if the current context for the Apex code is a trigger, not a Visualforce page, a Web service, or anexecuteanonymous() API call.
2) isInsert Returns true if this trigger was fired due to an insert operation, from the Salesforce user interface, Apex, or theAPI.
3) isUpdate Returns true if this trigger was fired due to an update operation, from the Salesforce user interface, Apex, or theAPI.
4) isDelete Returns true if this trigger was fired due to a delete operation, from the Salesforce user interface, Apex, or theAPI.
5) isBefore Returns true if this trigger was fired before any record was saved.
6) isAfter Returns true if this trigger was fired after all records were saved.
7) isUndelete Returns true if this trigger was fired after a record is recovered from the Recycle Bin (that is, after an undelete operation from the Salesforce user interface, Apex, or the API.)
8) new Returns a list of the new versions of the sObject records.Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
9) newMap A map of IDs to the new versions of the sObject records. Note that this map is only available in before update, after insert, and after update triggers.
10) old Returns a list of the old versions of the sObject records.Note that this sObject list is only available in update and delete triggers.
11) oldMap A map of IDs to the old versions of the sObject records.Note that this map is only available in update and delete triggers.
12) size The total number of records in a trigger invocation, both old and new.
http://amitsalesforce.blogspot.com/2015/10/trigger-context-variables.html
Let us know if this will help you
Salesforce supports several types of triggers that can be used to automate actions based on specific events. Here are the trigger events that are available in Salesforce:
- Before Insert
- Before Update
- Before Delete
- After Insert
- After Update
- After Delete
- After Undelete
In total, there are seven trigger events in Salesforce.Want to learn more about Salesforce triggers? Check out this link at https://arrify.com/triggers-in-salesforce/ for comprehensive information on triggers in Salesforce. This article covers everything from the benefits of using triggers, to tips and best practices, and even how to hire a developer to set up your triggers. A must-read for anyone looking to automate their processes in Salesforce!