P
P
Pavel2019-02-04 11:12:14
API
Pavel, 2019-02-04 11:12:14

Getting all contacts from CRM bitrix24 (API)?

There is a request to select contacts from Bitrix24 CRM

$contacts = executeREST($arAccessParams['client_endpoint'], 'crm.contact.list',  array(), $arAccessParams['access_token']);

Returns data
array(4) {
  ["result"]=>
  array(50) {
    [0]=>
    array(41) {
...
    }
    [49]=>
    array(41) {
...
    }
  }
  ["next"]=>
  int(50)
  ["total"]=>
  int(150)
  ["time"]=>
  array(6) {
    ["start"]=>
    ["finish"]=>
    ["duration"]=>
    ["processing"]=>
    ["date_start"]=>
    ["date_finish"]=>
  }
}

It can be seen that there are only 50 contacts out of 150 in the answer. How to get the rest?
The offset and limit parameters do not work, apparently I do not specify them correctly

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-02-04
@PavelFokeev

You need to use the start parameter , not offset .
Thanks to all)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question