18 parent::getDefaultPreFilters(),
20 new \
Bitrix\Rest\Engine\ActionFilter\Scope(
'im.import'),
21 new \
Bitrix\Main\Engine\ActionFilter\Scope(\
Bitrix\Main\Engine\ActionFilter\Scope::REST),
22 new \
Bitrix\Rest\Engine\ActionFilter\AuthType(\
Bitrix\Rest\Engine\ActionFilter\AuthType::APPLICATION)
29 if (count($messages) > 2000)
46 if (!$importService->hasAccess())
53 $addResult = $importService->addMessages($messages);
55 if (!$addResult->isSuccess())
57 $this->
addErrors($addResult->getErrors());
67 if (count($messages) > 2000)
84 if (!$importService->hasAccess())
91 $updateResult = $importService->updateMessages($messages);
93 if (!$updateResult->isSuccess())
95 $this->
addErrors($updateResult->getErrors());