CAllCrmActivity::DeleteTask

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. DeleteTask
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::DeleteTask
static function DeleteTask(&$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::deleteAssociatedEntity($associatedEntityID, $arFields);
	return $result->isSuccess();
}

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