Comment::createActivity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Comment
  4. createActivity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/tasks/comment.php
  • Класс: Bitrix\Crm\Activity\Provider\Tasks\Comment
  • Вызов: Comment::createActivity
public function createActivity(string $typeId, array $fields, array $options = []): Result
{
	$taskId = $fields['ASSOCIATED_ENTITY_ID'];
	$userId = $fields['RESPONSIBLE_ID'];
	if (!$this->canCreateActivity($taskId, $userId))
	{
		return new Result();
	}

	return parent::createActivity($typeId, $fields, $options);
}

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