You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be implemented as 3 methods and delayed execution:
//Start batch block
$obApp->batchStart();
//API-calls to be packed into batch
$obLead->getList();
$obLead->get();
...
//Batch end
$obApp->batchEnd();
//Run batch
$obApp->batchExecute();
Every method called for the same $obApp between $obApp->batchStart()
and $obApp->batchEnd() has to be stored in some cache ($batch[] = methodName+paramsArray),
but not executed immediately. And then all these stored methods
have to be executed on $obApp->batchExecute();
Programming effort here can be minimized by changing Bitrix24::call()
to support delayed API-calls execution.
http://dev.1c-bitrix.ru/rest_help/general/batch.php
The text was updated successfully, but these errors were encountered: