AnsweredAssumed Answered

Multiple Logic hook not working

Question asked by Ajit Agarw on Aug 26, 2016
Latest reply on Aug 29, 2016 by Ramana Raju Santhana

I have written  a logic hook on lead conversion that will working but now when added an another logic hook for new lead creation but it will not working.

I have try in another module in targets but this will also not working.


    $hook_version = 1;
    $hook_array = Array();


    $hook_array['after_save'] = Array();
    $hook_array['after_save'][] = Array(  


          'Logic Hook',








    if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
    class logic_hooks_class_prospects
                  function add_ph($bean, $event, $arguments)
                    echo "<script type='text/javascript'>alert('Its working!!!')</script>";



please help me how can i now which logic hook is working for new creation save button or conversion save button.