- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/integration/rest/appconfiguration.php
- Класс: BitrixBizprocIntegrationRestAppConfiguration
- Вызов: AppConfiguration::exportCrmTrigger
static function exportCrmTrigger($step)
{
$result = [
'FILE_NAME' => '',
'CONTENT' => [],
'NEXT' => false,
];
$res = TriggerTable::getList(
[
'order' => [
'ID' => 'ASC',
],
'filter' => [],
'select' => ['*'],
'limit' => 1,
'offset' => $step,
]
);
if ($item = $res->Fetch())
{
$result['FILE_NAME'] = $step;
$result['CONTENT'] = $item;
$result['NEXT'] = $step;
}
return $result;
}