• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/propertyindex/storage.php
  • Класс: BitrixIblockPropertyIndexStorage
  • Вызов: Storage::getLastStoredElementId
public function getLastStoredElementId()
{
	$connection = BitrixMainApplication::getConnection();

	$max =  $connection->queryScalar("select max(ELEMENT_ID) ELEMENT_MAX from ".$this->getTableName());

	return $max > 0? $max: 0;
}