CAllCrmActivity::GetDefaultCommunicationValue

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmActivity
  4. GetDefaultCommunicationValue
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_activity.php
  • Класс: \CAllCrmActivity
  • Вызов: CAllCrmActivity::GetDefaultCommunicationValue
static function GetDefaultCommunicationValue($ownerTypeID, $ownerID, $commType)
{
	$dbMultiFields = CCrmFieldMulti::GetList(
		array('ID' => 'asc'),
		array('ENTITY_ID' => CCrmOwnerType::ResolveName($ownerTypeID), 'ELEMENT_ID' => $ownerID, 'TYPE_ID' =>  $commType)
	);

	$multiField = $dbMultiFields->Fetch();
	return is_array($multiField) ? $multiField['VALUE'] : '';
}

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