+ Start a Discussion
vamshivamshi 

hi

What are recursive triggers. How can we avoid the recursion problem

NikuNiku

Suppose i have one requirement 

I want to update contact when account update so will write trigger OnAccount Update.

Same i want to update Account when Contact is update so i will write a trigger OnContact Update.

 

So when Account Update it will call => OnAccount Update Trigger and Contact is Updated...

 

When Contact is Updated ===> OnContact Trigger will Update Account ==>

 

So same chain will continue..

Account Update Contact 

Contact Update Account

....

This can be avoid by Using static variable. In your trigger.  If this will help you mark as solved. :)

 

Thanks

Nik's