Hi,
im trying to fetch record inside custom service action for workflow. I follow this example https://www.espocrm.com/features/add...-for-workflow/
but now i cant fetch data inside this class.
Thanks
im trying to fetch record inside custom service action for workflow. I follow this example https://www.espocrm.com/features/add...-for-workflow/
but now i cant fetch data inside this class.
PHP Code:
$app = new \Espo\Core\Application();
$entityManager = $app->getContainer()->get('entityManager');
$accountList = $entityManager->getRepository('Account')->limit(0, 2)->find();
// $accountList is empty and i have a lot of account created
Comment