Hi.
I am trying to recover leads records, which can be 500, 10000, and more than 12000 records, they depend on WHERE conditions (‘Assigned’, ‘New’, ‘InProcess’ etc), sometimes they respond with null, has it happened to someone?
$args = array(
'session' => $sessionID,
//The name of the module from which to retrieve records
'module_name' => 'Leads',
//The SQL WHERE clause without the word "where".
'query' => "",
//The SQL ORDER BY clause without the phrase "order by".
'order_by' => "",
//The record offset from which to start.
'offset' => 0,
//A list of fields to include in the results.
'select_fields' => array(
'id',
'full_name',
'phone_mobile',
'phone_work',
'email1',
'status',
'date_entered',
'assigned_user_name'
),
//A list of link names and the fields to be returned for each link name.
'link_name_to_fields_array' => array(),
//The maximum number of results to return.
'max_results' => 20000, // DUMMY FOR GET ALL ROWS
//If deleted records should be included in results.
'deleted' => 0
);
$result = $this->suiteCRM->callCurl('get_entry_list', $args);