CAllCrmActivity::UnregisterLiveFeedEvent

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. UnregisterLiveFeedEvent
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::UnregisterLiveFeedEvent
static function UnregisterLiveFeedEvent($activityID)
{
	$slEntities = CCrmLiveFeed::GetLogEvents(
		array(),
		array(
			'ENTITY_TYPE_ID' => CCrmOwnerType::Activity,
			'ENTITY_ID' => $activityID
		),
		array('ID')
	);

	$options = array('UNREGISTER_RELATION' => false);
	foreach($slEntities as &$slEntity)
	{
		CCrmLiveFeed::DeleteLogEvent($slEntity['ID'], $options);
	}
	unset($slEntity);
	CCrmSonetRelation::UnRegisterRelationsByEntity(CCrmOwnerType::Activity, $activityID);
}

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