+ Start a Discussion
KMK91KMK91 

what are the type of triggers?

Best Answer chosen by KMK91
jyothsna reddy 5jyothsna reddy 5
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..).

All Answers

sfdc Beginnersfdc Beginner
Hi Madhukar,

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
ManojjenaManojjena
Hi Madhukar,
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
KMK91KMK91
I'm Asking types of trigger?
ManojjenaManojjena
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 .

 
jyothsna reddy 5jyothsna reddy 5
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..).
This was selected as the best answer