• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/crm.php
  • Класс: BitrixImOpenLinesCrm
  • Вызов: Crm::executeAutomationTrigger
public function executeAutomationTrigger($bindings, $data)
{
	$result = new Result();

	if (!BitrixCrmAutomationFactory::canUseAutomation())
	{
		return $result;
	}

	if (!$this->isSkipAutomationTriggerFirstMessage())
	{
		if(is_array($bindings) || is_array($data))
		{
			$result = OpenLineTrigger::execute($bindings, $data);
		}
		else
		{
			$result->addError(new Error(Loc::getMessage('IMOL_CRM_ERROR_NO_REQUIRED_PARAMETERS'), self::ERROR_IMOL_CRM_NO_REQUIRED_PARAMETERS, __METHOD__));
		}
	}

	return $result;
}