Task::delete

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Task
  4. delete
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/tasks/task.php
  • Класс: Bitrix\Crm\Activity\Provider\Tasks\Task
  • Вызов: Task::delete
public function delete(int $activityId): void
{
	CCrmActivity::Delete($activityId, true, true, ['MOVED_TO_RECYCLE_BIN' => true]);
	TimelineEntry::deleteByAssociatedEntity(CCrmOwnerType::Activity, $activityId);

	static::invalidateAll();
}

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