AnsweredAssumed Answered

How to detect view type in process_record (7.6)

Question asked by Harald Kampen on Mar 10, 2017
Latest reply on Mar 10, 2017 by Francesca Shiekh



I don't found a way to detect the view type in a process_record event. There is a description with $GLOBALS['action'] for the community edition, but the value is NULL. Any clues how to solve it?

The goal is the add a value from accounts bean in the recordview, but not in listview.


class BeforeViewHook
     * Funktioniert
     * @param Opportunity $bean
     * @param array $events
     * @param array $arguments
    public function run($bean, $events, $arguments)
        error_log(var_export($GLOBALS['action'] ,1));