• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRestProxyBase
  • Вызов: CCrmRestProxyBase::get
public function get($ID)
{
	if(!$this->checkEntityID($ID))
	{
		throw new RestException('ID is not defined or invalid.');
	}


	$errors = array();
	$result = $this->innerGet($ID, $errors);
	if(!is_array($result))
	{
		throw new RestException(implode("\n", $errors));
	}
	$fieldsInfo = $this->getFieldsInfo();
	$this->externalizeFields($result, $fieldsInfo);
	return $result;

}