Hello guys ,
i am relatively new when it comes to SuiteCRM and i got problems with logic hooks.
I already took a look on the SuiteCRM Documentation but it’s always difficult to understand.
Where do we need to apply logic hooks for example or in which situation.
Moreover i wish to know how i can have access to this,because i searched all over the SuiteCRM Software but couldn’t find something related to these Hooks(for example a page where i can modify or do some tests in order to learn more about it).
Thanks
Hi @jordan,
Please read this blog: Logic Hooks in SuiteCRM: How to Create it?
Here, we have covered regarding what is logic hooks, how to create them for example etc
custom/modules/Cases/logic_hooks.php
How can i get to this path?
That’s one of my main Problems.Is it inside the SuiteCRm software or there is particular way to get there?
Yes, it is inside SuiteCRM.
please can you show / tell me where exactly?
because i have been exploring the software but have seen nothing
Go to the CRM folder (you got the folder after the installation)
custom folder < modules folder and then create logic_hooks.php file
in the module where you want to.
Add this code:
$hook_array[‘before_save’][]=Array(1,’assignUser’,’custom/modules/Cases/Example.php’, ‘UpdateLogichookClass’, ‘updateLogichooksmethod’);
Then repair it.
I’ll recommend you to check this post. It applies to SuiteCRM as well