F
F
F(x)2019-08-14 09:49:18
1C-Bitrix
F(x), 2019-08-14 09:49:18

How to get all the data before deleting an infoblock element?

Can you get it or not?
If so, how can you get it?
I tried like this: (OnBeforeIBlockElementDeleteHandler)

function OnBeforeIBlockElementDeleteHandler($ID)
    {
           debug($arFields);
            die();
            //или
            $res = CIBlockElement::GetByID($_GET["ID"]);
             if($ar_res = $res->GetNext())
             echo $ar_res['NAME'];
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
serginhold, 2019-08-14
@serginhold

so get, by request, to the data that is needed,
in the event https://dev.1c-bitrix.ru/api_help/iblock/events/on... only the ID of what we delete is known

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question