Logic Hooks Not Working

Logic Hooks are not working. I followed the documents provided by Sugar. Even logs are not generated. 

Please provide code and specify location where files should be added.

Used below location:

custom/Extension/modules/Ext/LogicHooks/logic_hooks.php

custom/modules/Order/logic.php

Version : 10.3 (Enterprise Edition)

Parents Reply Children
  • Followed below approach : 

    1.We need  to add the definition file in .custom/Extension/modules/<modulename>/Ext/LogicHooks/logic_hooks.php where you will define the hook actions that will trigger the logic.

    2.In .custom/modules/<modulename>/<yourfilename.php> you have to add your logic file

    Able to implement logic Hooks.

    #How we can apply Logic Hooks on custom button ?

    #How we can call Sugar APIs and external APIs  on click of custom button ? 

    It will be great help if you can suggest something here.