Answer the question
In order to leave comments, you need to log in
How to get property settings via api?
I need these settings:
Answer the question
In order to leave comments, you need to log in
Can be obtained via \Bitrix\Iblock\PropertyFeatureTable::getList
//По ID свойства
$result = \Bitrix\Iblock\PropertyFeatureTable::getList([
'filter' => ['=PROPERTY_ID' => $propertyId]
])->fetch();
//по коду свойства и id инфоблока
$result = \Bitrix\Iblock\PropertyFeatureTable::getList([
'filter' => [
'PROPERTY.CODE' => $propertyCode,
'PROPERTY.IBLOCK_ID' => $iblockId,
]
])->fetch();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question