Hey telecast, I wanted to start by saying that your post has been incredibly helpful and your tutorials have taught me a lot when it comes to Espo. I am currently trying to implement this tutorial, I've followed all three parts and came to a roadblock. The payload seems to be building itself well, but I'm having trouble when it comes to the EntryPoint ConditionalLinkMultiple.php and the reception of the payload. When seen from inspect mode from the browser with the console.log() commands uncommented, I get the following: Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>) at xmlhttp.onreadystatechange when attempting to select a Service Tech.
From the data/logs point of view, I get the following line:
[2023-01-16 13:19:30] ERROR: Uncaught Exception Espo\Core\Exceptions\BadRequest: "Only GET requests allowed for entry points." at C:\xampp\htdocs\EspoCRM\application\Espo\Core\Entr yPoint\Starter.php line 103 {"exception":"[object] (Espo\\Core\\Exceptions\\BadRequest(code: 400): Only GET requests allowed for entry points. at C:\\xampp\\htdocs\\EspoCRM\\application\\Espo\\Cor e\\EntryPoint\\Starter.php:103)"} []
I did a little bit of research and found your thread: https://forum.espocrm.com/forum/deve...-with-espo-6-0
So I assumed that my Espo's version was the problem (currently using 7.2). Due to my lack of experience writing custom code for Espo, I found it hard to adapt your code in this tutorial based on that thread. Is there any chance you could update this tutorial, or at least the last part of it to work with the latest version? I would be immensely thankful.
Regards,
at JSON.parse (<anonymous>) at xmlhttp.onreadystatechange when attempting to select a Service Tech.
From the data/logs point of view, I get the following line:
[2023-01-16 13:19:30] ERROR: Uncaught Exception Espo\Core\Exceptions\BadRequest: "Only GET requests allowed for entry points." at C:\xampp\htdocs\EspoCRM\application\Espo\Core\Entr yPoint\Starter.php line 103 {"exception":"[object] (Espo\\Core\\Exceptions\\BadRequest(code: 400): Only GET requests allowed for entry points. at C:\\xampp\\htdocs\\EspoCRM\\application\\Espo\\Cor e\\EntryPoint\\Starter.php:103)"} []
I did a little bit of research and found your thread: https://forum.espocrm.com/forum/deve...-with-espo-6-0
So I assumed that my Espo's version was the problem (currently using 7.2). Due to my lack of experience writing custom code for Espo, I found it hard to adapt your code in this tutorial based on that thread. Is there any chance you could update this tutorial, or at least the last part of it to work with the latest version? I would be immensely thankful.
Regards,
Comment