CAllCrmActivity::SaveTask

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. SaveTask
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::SaveTask
static function SaveTask(&$arFields)
{
	$typeID = self::GetActivityType($arFields);
	$associatedEntityID = isset($arFields['ASSOCIATED_ENTITY_ID']) ? (int)$arFields['ASSOCIATED_ENTITY_ID'] : 0;

	if ($typeID !== CCrmActivityType::Task || $associatedEntityID <= 0)
		return false;

	//compatible
	$result = \Bitrix\Crm\Activity\Provider\Task::updateAssociatedEntity($associatedEntityID, $arFields);
	return $result->isSuccess();
}

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