Answer the question
In order to leave comments, you need to log in
Batch request, how to get the next 50 requests from bitrix24 in php?
I need the list method to give me every 50 next requests, I write like this:
for($i = 0; $i < 10; $i++){
$arParams['get_elapsed_'.($i+1)] = [
'method' => 'task.elapseditem.getlist',
'params' => [
'order' => ["ID" => "ASC"],
'filter' => [">=CREATED_DATE" => $dateFrom,"<CREATED_DATE" => $dateTo],
'select' => ['ID','TASK_ID','COMMENT_TEXT','MINUTES'],
'more' => true,
'next' => ($i+1)*50
]
];
}
Answer the question
In order to leave comments, you need to log in
use the description, there you need to use two parameters to control the size of the list and the current page:
"PARAMS" => array('NAV_PARAMS' => array( // Постраничка
"nPageSize" => 2, // по 2 элемента на странице
'iNumPage' => 2 // страница номер 2
)),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question