D
D
dstarkoff2016-02-03 23:49:48
1C-Bitrix
dstarkoff, 2016-02-03 23:49:48

Bitrix: how to update the SORT field of an infoblock element via API?

CIBlockElement::SetPropertyValuesEx()
CIBlockElement::SetPropertyValues()
CIBlockElement::Update()

I pass it to Array("SORT"=>value), nothing happens. How do I force a value on an already existing element?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Ko1, 2016-02-24
@Ko1

Perhaps you should look towards Bitrix ORM, there is an update method, you need to do it through it

V
vladkras, 2016-06-17
@vladkras

Checked,
$el = new CIBlockElement();
$el->Update($ELEMENT_ID, array('SORT'=>100));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question