Hello, tell me how to get the ORM result of the report on its id ?
How in ORM to receive result of the report on its id
Collapse
X
-
Returns an error in logs
<?php
namespace Espo\Custom\Services;
use \Espo\ORM\Entity;
class EntityPlanningService extends \Espo\Core\Services\Base
{
public function EntityPlanningServiceAction($workflowId, Entity $entity, array $additionalParameters = null)
{
$reportService = $this->getServiceFactory()->create('Report');
$reportResult = $reportService->run($entity->get('reportId'));
}
}
Espo.ERROR: Uncaught Exception Error: "Call to undefined method Espo\Custom\Services\EntityPlanningService::getSer viceFactory()" at /home/admin/web/*********/public_html/custom/Espo/Custom/Services/EntityPlanningService.php line 12 {"exception":"[object] (Error(code: 0): Call to undefined method Espo\\Custom\\Services\\EntityPlanningService::get ServiceFactory() at /home/admin/web/*********/public_html/custom/Espo/Custom/Services/EntityPlanningService.php:12)"} []
Comment
Comment