Hi all,
I have a custom module of printers, when certain fields are updated in the record I want to send that record data to an external laravel site to update its database.
I currently use logic hooks to do this
the update_to_cache function checks if the fields I want to check have changed and if they have pushes that data to our laravel site over curl to a custom endpoint. The problem is Id like to inform the user with an alert box that the cache was updated or display the error returned from laravel
is it possible to do this in sidecar and have a custome script running an ajax reguest to the laravel server then using the alerts to display the return?
I cant use the built in web_logic_hooks as I only want this to happen if certain fields are updated.
this is my logic hooks custom class
i used the log just to check the hook was firing