CAllCrmLead::getCurrentFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmLead
  4. getCurrentFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_lead.php
  • Класс: \CAllCrmLead
  • Вызов: CAllCrmLead::getCurrentFields
private function getCurrentFields(int $id)
{
	$filter = ['ID' => $id];
	if (!$this->bCheckPermission)
	{
		$filter['CHECK_PERMISSIONS'] = 'N';
	}

	$res = self::GetListEx([], $filter, false, false, ['*', 'UF_*']);
	if (!($fields = $res->fetch()))
	{
		return false;
	}

	$fields['FM'] = Crm\Entity\Lead::getInstance()->getEntityMultifields($id, ['skipEmpty' => true]);

	return $fields;
}

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