Call::onAfterAdd

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Call
  4. onAfterAdd
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/call.php
  • Класс: Bitrix\Crm\Activity\Provider\Call
  • Вызов: Call::onAfterAdd
static function onAfterAdd($activityFields, array $params = null)
{
	$direction =
		isset($activityFields['DIRECTION'])
			? (int)$activityFields['DIRECTION']
			: \CCrmActivityDirection::Undefined
	;

	if ($direction === \CCrmActivityDirection::Outgoing && \Bitrix\Crm\Automation\Factory::canUseAutomation())
	{
		\Bitrix\Crm\Automation\Trigger\OutgoingCallTrigger::execute($activityFields['BINDINGS'], $activityFields);
	}
}

Добавить комментарий