• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/filetable.php
  • Класс: Bitrix\Sender\FileTable
  • Вызов: FileTable::getCurrentFiles
static function getCurrentFiles(int $entityId, int $entityType)
{
	return self::getList([
		'select' => ['FILE_ID'],
		'filter' => [
			'=ENTITY_ID' => $entityId,
			'=ENTITY_TYPE' => $entityType,
		],
	])->fetchAll();
}