S
S
Sinner32018-06-13 21:17:31
1C-Bitrix
Sinner3, 2018-06-13 21:17:31

How to massively change the "External code:" property and assign it an id value in 1s Bitrix?

To integrate with 1C, you need to massively change the "External code:" property and assign it the value "ID"
5b215f0e5589b722949128.png
I tried to unload these properties through export, change the values ​​in the csv file and import it back to the site, it did not help.
How else can you change the properties?
"External ID:" stored in [XML_ID] and [EXTERNAL_ID]

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vasya, 2018-06-15
@Sinner3

Api APIs, but IMHO it's enough to
update b_iblock_element set xml_id = id where iblock_id = 'required infoblock'
Settings - tools - sql query

S
Sinner3, 2018-06-13
@Sinner3

I tried to find through the standard filter in 1s-Bitrix, but I'm probably doing something wrong 5b2167862205e693270105.png
So I wanted to find all the elements in which the ID is not equal to XML_ID

M
Maxim, 2018-06-14
@Tomio

You can do this through the Bitrix API in 2 stages:
1. Pull out all the products using CIBlockElement::GetList
2. Go through them and update the XML_ID for each product in a loop using the CIBlockElement::Update method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question