A
A
Alexander Petrov2016-04-18 17:01:15
1C-Bitrix
Alexander Petrov, 2016-04-18 17:01:15

How to make your own ID when adding an element to Bitrix?

I need to add a section and add my own ID.
I add like this:

$bs = new CIBlockSection;
    $arFields = Array(
      "ID" => $id,
      "ACTIVE" => 'Y',
      "IBLOCK_ID" => 1,
      "NAME" => $name,
      );

as a result, the ID is set by the system generated one.
I'm transferring content from another site, and everything is tied to an ID there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Maksimenko, 2016-04-18
@olegprof

No way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question