Hi,
I have a logic hook “after_save” with one of my custom modules. The issue I am having is that I have both a cron job running (and saving records) as well as the normal edit functionality within SuiteCRM.
Now, I only need the logic hook to run when its coming from within suitecrm (and not the cron job).
One workaround I have is to set a config variable in the database to identify if the cron job is running and I subsequently check this in my logic hook. But this presents a problem when somebody saves using the normal edit page within suitecrm while the cron job is running as well.
The third argument of the after_save hook, “arguments”. Can we pass some data in there perhaps?
Any solutions are welcome. Thanks!