вариант 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
CModule::IncludeModule('crm'); $arr = \Bitrix\Crm\CompanyTable::getList( [ 'order' => ['ID' => 'DESC'], 'select' => ['ID','TITLE'], 'limit' => 10, 'offset' => 5, 'runtime' => [ 'DEAL' => [ 'data_type' => \bitrix\Crm\Dealtable::class, 'reference' => ['this.ID' => 'ref.COMPANY_ID'], 'join_type' => 'LEFT' ] ] ] )->fetchAll(); var_dump($arr); |
результат
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
array(10) { [0] => array(2) { 'ID' => string(5) "76894" 'TITLE' => string(79) "вИндастрис" } [1] => array(2) { 'ID' => string(5) "76893" 'TITLE' => string(15) "nado Tecnimont" } |
Цены
1500 р/чБолее подробно тут: https://ftask.ru/цены