Answer the question
In order to leave comments, you need to log in
How to unload large amounts of Bitrix24 data in PHP?
There is an example from Bitrix: https://dev.1c-bitrix.ru/rest_help/rest_sum/start.php but here I don't understand how to apply it to my task.
I want to import 1500 new companies, but before importing, check if this company exists in the bitr or not by the TIN field.
I do it through callBatch but there is a maximum of 50 results returned..
foreach ($allCompany as $k => $v) {
debug($v['inn']);
if (!empty($v['inn'])){
$request[$k . 'crm.company.list'] = [
'method' => 'crm.company.list',
'params' => [
'order' => ['ID' => 'ASC'],
'filter' => [
'UF_CRM_5F' => $v['inn'],
],
'select' => [
'ID',
],
]
];
}
}
$request = CRest::callBatch($request);
Answer the question
In order to leave comments, you need to log in
How to go over all the companies and compare them with 1500 new ones and to bypass the limit or do it somehow according to the Bitrix law ....?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question