+ Start a Discussion
Lakshmi SLakshmi S 

Apex Triggers (Recursive triggers)

Hi All,

whether trigger will be called once or twice and when will you get the recursive trigger?
Best Answer chosen by Lakshmi S
Vasani ParthVasani Parth
This is a brilliant post by Andrew Fawcett on recursive triggers and how to avoid them http://salesforce.stackexchange.com/questions/22828/what-are-recursive-triggers-how-to-control-them-please-provide-an-example-also

Please mark this as the best answer if this helps

All Answers

Nagendra Prasad ChNagendra Prasad Ch
If we do Insert or Update of an object on After trigger of same object, it will execute before, after triggers again and again (upto 5 time) and will cause recursion.
Ex: If we put Insert/Update of Contacts on Contact After Trigger, it causes recursion in contact triggers.
Vasani ParthVasani Parth
This is a brilliant post by Andrew Fawcett on recursive triggers and how to avoid them http://salesforce.stackexchange.com/questions/22828/what-are-recursive-triggers-how-to-control-them-please-provide-an-example-also

Please mark this as the best answer if this helps
This was selected as the best answer
Lakshmi SLakshmi S
Thankyou all