Answer the question
In order to leave comments, you need to log in
How to extract all infoblock elements by infoblock property?
I have an infoblock
. It has a GROUP_TENDERS property, which is a binding to autocomplete elements. How can I pull out all the elements of the infoblock, with an attached element, for example, whose ID is equal to ?
Answer the question
In order to leave comments, you need to log in
$iblockID = 1; // ID инфоблока
$groupTendersID = 2; // ID привязанного элемента
$filter = ['IBLOCK_ID' => $iblockId, 'PROPERTY_49' => $groupTendersID]
$result = CIblockElement::GetList([], $filter, false, false, ['ID', 'IBLOCK_ID', 'NAME']);
while ($arElement = $result->GetNext()) {
echo $arElement['NAME'];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question