You need to sign in to do that
Don't have an account?

Trigger recursion depth
I don't find anything in limit class that gives current trigger depth. Is it possible to get current trigger depth using trigger context variable or any other way?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
http://amitsalesforce.blogspot.in/2015/03/how-to-stop-recursive-trigger-in.html
Solution :-
you can create a class with a static Boolean variable with default value true. In the trigger, before executing your code keep a check that the variable is true or not. Once you check make the variable false.