Types of Triggers: – Before Triggers – After Triggers
Before Trigger: Before triggers are used to perform the logic on the same object and specifically we cannot use the DML operation (Insert, update, delete) on these triggers. These triggers are fired before the data is saved into the database. After Trigger: After triggers are used to perform the logic on the related objects and these triggers are used access the fields values that are created by system (Ex: CreatedBy, LasteModifiedBy , Record Id etc..).
Hi Madhukar, Have you read the content of the blog .Basically there is no such definite type of trigger . Based on the event you can differentiate trigger into two types .After and Before .
What sfdc Beginner has already descibed in the above post .
Types of Triggers: – Before Triggers – After Triggers
Before Trigger: Before triggers are used to perform the logic on the same object and specifically we cannot use the DML operation (Insert, update, delete) on these triggers. These triggers are fired before the data is saved into the database. After Trigger: After triggers are used to perform the logic on the related objects and these triggers are used access the fields values that are created by system (Ex: CreatedBy, LasteModifiedBy , Record Id etc..).
– Before Triggers
– After Triggers
Before Trigger: Before triggers are used to perform the logic on the same object and specifically we cannot use the DML operation (Insert, update, delete) on these triggers.
These triggers are fired before the data is saved into the database.
After Trigger: After triggers are used to perform the logic on the related objects and these triggers are used access the fields values that are created by system (Ex: CreatedBy, LasteModifiedBy , Record Id etc..).
All Answers
There are two Types of Triggers
1) Before Triggers
Before Triggers are Mainly used for
a) Validation Check on the Same Object
b) Updating the records of the Same Object
2) After Triggers
After Triggers are Mainly used for
a) Insert or Update related object records.
b) Sending emails etc...
If this solves your Problem, Mark it as the Best Answer.
Thanks,
sfdc Beginner
check belwo link it will give you some basic concepts of trigger .
http://manojjena20.blogspot.in/2013/03/manojs-trigger-blog.html
let me know if it helps !!!
Thanks
Manoj
Have you read the content of the blog .Basically there is no such definite type of trigger . Based on the event you can differentiate trigger into two types .After and Before .
What sfdc Beginner has already descibed in the above post .
– Before Triggers
– After Triggers
Before Trigger: Before triggers are used to perform the logic on the same object and specifically we cannot use the DML operation (Insert, update, delete) on these triggers.
These triggers are fired before the data is saved into the database.
After Trigger: After triggers are used to perform the logic on the related objects and these triggers are used access the fields values that are created by system (Ex: CreatedBy, LasteModifiedBy , Record Id etc..).