F
F
F(x)2019-08-13 07:12:41
1C-Bitrix
F(x), 2019-08-13 07:12:41

Find out if a field has changed when an element is changed?

In the element update event handler (OnAfterIBlockElementUpdate), how do you know if a field has changed and which fields have changed at all?
or how to get the fields BEFORE the change so that you can compare

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mirexdoors, 2019-08-13
@mirexdoors

You need to use OnBeforeIBlockElementUpdate for this

Y
Yaroslav Alexandrov, 2019-08-13
@alexyarik

Set up Bitrix logs, write the necessary variables in the AddMessage2Log code and look in the logs for what data these variables got
https://dev.1c-bitrix.ru/api_help/main/functions/d...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question