There is an information block with contractors where the properties of Name, E-mail, etc. are entered.
It is necessary, having email, to receive the name. Apparently, you need to put it in $ arFilter, but I do not even know how this property is named.
How to do it?
$arSelect = array(); $arFilter = Array( "IBLOCK_ID" => 52, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y" ); $res = CIBlockElement::GetList(Array(), $arFilter, false, "", $arSelect); $conractors = array(); while($ob = $res->GetNextElement()){ $arFields = $ob->GetFields(); $conractors[$arFields['ID']] = $arFields['NAME']; } This code displays the name.