+1 vote
in Salesforce by
What are The Types of Apex Triggers in Salesforce?

1 Answer

0 votes
by
Triggers are divided into 2 types

Before Triggers

After Triggers

Before Triggers: Before Triggers can be used to update or validate values of a record before they are saved to the database.

After Triggers: After Triggers Before Triggers can be used to access field values of the records that are stored in the database and use this value to make changes in other records.

Salesforce Certification Training!

Explore Curriculum

Syntax:

1

Trigger trigger_name on Object_Name(trigger_events) { Code_block } WHERE trigger_events can be comma separated list of events.
...