How to invoke logic hook from WorkFlow

I have a type of master/detail module setup where the details are summarised to the master record. I have created a logic hook to update the master record whenever the details records are edited which works fine.

However, the details records are date-based and can expire over time. I have added a workflow to detect the expiries and I’d like to call the logic hook to execute the expiry logic. I’d like to do this without editing the detail record and changing the last modified dates.

Is this possible and how?

Cheers

I got around it by creating a Scheduler and including the login hook file there. See SuiteCRM for Developers by Jim Mackin.

I had to forego the ‘Run Once’ functionality but as my update only happen once per day and the select criterion matches only ‘today’ I’m not too concerned about it.

The workflow still runs to notify the user of the expiry but the master record has already been updated.