G
G
Good Samaritan2022-01-26 17:00:21
1C-Bitrix
Good Samaritan, 2022-01-26 17:00:21

How to get property settings via api?

I need these settings:
61f154b039bbd562718721.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2022-01-27
@djamali

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 question

Ask a Question

731 491 924 answers to any question