function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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