C
C
Caxann2020-09-05 01:03:52
1C-Bitrix
Caxann, 2020-09-05 01:03:52

How to edit custom properties when importing Bitrix?

To be honest, I already cursed the day when I agreed to help my friends with the site on Bitrix. I googled and searched for a long time in the documentation, but did not find a solution to the obvious question:
I hang the AddEventHandler("iblock", "OnBeforeIBlockElementAdd", "test"); when importing csv

function test(&$arFields) {
header('Content-Type: application/json');
echo (json_encode($arFields)); exit;
}

Gives me the standard infoblock properties, how can I perform operations with custom ones that I added myself?
(I'm attaching the json output)
5f52b9aff151e516477830.png
And the second question, how can I even operate with the request / post data?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2020-09-05
@gangstarcj

Well, for starters, at least open the documentation https://dev.1c-bitrix.ru/api_help/iblock/events/on... and see how it's done in examples

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question