Answer the question
In order to leave comments, you need to log in
Bitrix24 box. When adding a user $USER->Add I get an error 500, what's wrong?
The user is created when adding the "Personnel changes" IB element using the AddEventHandler("iblock", "OnBeforeIBlockElementAdd", "OnBeforeIBlockElementAddHandler"); In the handler, the user's data is formed into an array and added using $USER->Add, but if I add the "UF_DEPARTMENT" field to the user, which is "Binding to sections of info blocks" - the info block of the department, Bitrix simply returns an error 500. Where to dig?
Answer the question
In order to leave comments, you need to log in
Пользователь создается при добавлении элемента ИБ "Кадровые изменения"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question