<div dir="ltr">Hey guys,<div><br><div><br></div><div>I've chosen to use a Event Handler like Alan suggested, this seemed the best option for me.</div><div><br></div><div>This might be a pretty dumb question but i can't seem to figure out how to print,echo or log the data i get after the entity save.</div><div>I only want to see the data for now for development purposes.</div><div><br></div><div>My Event Handler so far:</div><div><br></div><div><div><?php</div><div><span class="" style="white-space:pre">   </span>class ReeleezeeHandler extends VTEventHandler {</div><div><span class="" style="white-space:pre">    </span>  <span class="" style="white-space:pre">       </span>function handleEvent($eventName, $data) {</div><div><span class="" style="white-space:pre">  </span>        if($eventName == 'vtiger.entity.aftersave') {</div><div><span class="" style="white-space:pre">  </span>        <span class="" style="white-space:pre">      </span>if ($data->isNew()) {</div><div><span class="" style="white-space:pre">   </span>            <span class="" style="white-space:pre">        </span>// Create of new record</div><div><span class="" style="white-space:pre">    </span>            <span class="" style="white-space:pre">        </span>print_r($data);</div><div><span class="" style="white-space:pre">            </span>        } else {</div><div><span class="" style="white-space:pre">               </span>            // Edit of older record</div><div><span class="" style="white-space:pre">          </span>        }</div><div><span class="" style="white-space:pre">      </span>        }</div><div><span class="" style="white-space:pre">      </span>    }</div><div><span class="" style="white-space:pre">    </span>}</div><div>?></div></div><div><br></div><div>Can someone maybe give me push in the right direction?</div><div><br></div><div>Thanks in advance!!</div><div><br></div><div><br></div><div>Lennart</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-08 20:27 GMT+01:00 Lennart van Ballegoij <span dir="ltr"><<a href="mailto:lennart@egmmedia.nl" target="_blank">lennart@egmmedia.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys,<div><br></div><div>Thanks for all the tips, i'm going to dive into this tomorrow.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-12-08 8:53 GMT+01:00 Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 07/12/15 21:37, Richard Hills - Technologywise wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Workflows should be a good fit for your requirements? Just create a<br>
custom workflow function and have your workflow run on every save to an<br>
invoice.<br>
</blockquote>
<br></span>
Or an Event Handler could be used too.<br>
<br>
Al<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>