after-retrieve application logic hook event occurs multiple times

Dear All,

I am using after-retrieve event in application logic hook, but it is called multiple times…how can it be restricted.

please give me the suggestion or guidance…

your help will be much appreciated

Hi,
have you debugged which objects are triggering the function? Filter those out you’re not interested in, e.g. with a switch-case statement.

Alternatively, can your task be done in a more specific hook on module-level?

Use $bean->processed = true; in file.

Hi Parvezalam,

i am using application logic hook. so cannot have bean argument

no, actually i am trying to write a global hook to track all events… so i dont use module hook…