use Bitrix\Highloadblock as HL;use Bitrix\Main\Entity;if(count($arResult['PROPERTIES']["COLOR"]['VALUE'])>0){$XMLID=$arResult['PROPERTIES']["COLOR"]['VALUE'];
CModule::IncludeModule("highloadblock");$hlblock=HL\HighloadBlockTable::getById(1)->fetch();$entity=HL\HighloadBlockTable::compileEntity($hlblock);$entity_data_class=$entity->getDataClass();$rsProp=$entity_data_class::getList(array("select"=>array('*'),"filter"=>array('=UF_XML_ID'=>$XMLID),));$arResult['HLBLOCK_VALUES']["COLOR"]=array();while($arProp=$rsProp->Fetch()){$arResult['HLBLOCK_VALUES']["COLOR"][$arProp['UF_XML_ID']]=$arProp;}}