Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question