Hi, I created a Hook like the following code, everything works except for the teamsIds line, how can I make it work?
<?php
namespace Espo\Custom\Hooks\Lead;
use Espo\ORM\Entity;
class Schedule extends \Espo\Core\Hooks\Base
{
public function beforeSave(Entity $entity, array $options = [])
{
if ($entity->isNew() ) {
$entity ->set('source','Search');
$entity ->set('teamsIds','5f5118eed104c7de4');
<?php
namespace Espo\Custom\Hooks\Lead;
use Espo\ORM\Entity;
class Schedule extends \Espo\Core\Hooks\Base
{
public function beforeSave(Entity $entity, array $options = [])
{
if ($entity->isNew() ) {
$entity ->set('source','Search');
$entity ->set('teamsIds','5f5118eed104c7de4');
Comment