Answer the question
In order to leave comments, you need to log in
How should a filter by a custom list type field look like?
I don't understand how it is necessary to specify fields like 'list' and 'binding to element' in the filter.
use Bitrix\Main\Loader;
Loader::includeModule("highloadblock");
use Bitrix\Highloadblock as HL;
use Bitrix\Main\Entity;
$hlbl = 1; // Указываем ID нашего highloadblock блока к которому будет делать запросы.
$hlblock = HL\HighloadBlockTable::getById($hlbl)->fetch();
$entity = HL\HighloadBlockTable::compileEntity($hlblock);
$entity_data_class = $entity->getDataClass();
$rsData = $entity_data_class::getList(array(
"select" => array("*"),
"order" => array("ID" => "ASC"),
"filter" => array("UF_PRODUCT_ID"=>"77") // Для поля типа 'строка' работает
));
Answer the question
In order to leave comments, you need to log in
Everything seems to be correct, only if this is a number, pass the value without quotes (the same number)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question