Can a logic hook send or receive data?

I am trying to send an AJAX to a loogic hook to get the id of a newly created Case, but I am not getting an answer, also and I have been trying to do it by CURL towards another php but I am not getting any answer either, is this possible or not?.

Thanks!

Im working in Sugar CE 6.5.22.

Parents Reply

  • Let me explain, I hope you could help me.

    I have created a js file and I have included it in custom / modules / Cases / metadata / editviewdefs.php to be able to send the form by clicking save to a php that I have, and to do some validations and be able to send an email, the problem that I have is that since it is a new record, it does not yet have an id, with which I cannot make validations, so I thought that I could send an ajax to the logic hook and that it would return the newly created id ...

    Why don't I use logic hook?

    I read that a logic hook does not return data, and in some cases I have to return a data, I do not know if I explain myself correctly

Children