Call::getFirstPhoneNumber

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Call
  4. getFirstPhoneNumber
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/call.php
  • Класс: Bitrix\Crm\Activity\Provider\Call
  • Вызов: Call::getFirstPhoneNumber
static function getFirstPhoneNumber($entityTypeId, $entityId)
{
	$phones = Communication\Manager::resolveEntityCommunicationData($entityTypeId, $entityId, [Communication\Type::PHONE]);

	if (is_array($phones) && count($phones) > 0)
	{
		return $phones[0]['VALUE'];
	}
	
	return '';
}

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