AnsweredAssumed Answered

Get count of records via API v10 Leads created on a date by user id

Question asked by Joe Carter on Sep 17, 2016
Latest reply on Sep 18, 2016 by Autchara Chaiprom

Hi

 

I am trying to get a count of leads created by user but I can't get the filter to do this.  I have tried all manor of parameters and looked at every suggestion on web but still can't suss it.

 

The filter I have is

 

$filter_arguments = array(
"filter" => array(
array(
'$and' => array(
array(
"created_by" => array(
'$starts'=>'d8d347bd-91a1-4fa4-b15e-5735e084234c',
)
),
array(
//or name is equal to 'My Account'
"date_created" => '2016-09-17'
)
),
),
),
"max_num" => -1,
"offset" => 0,
"fields" => "created_by_name",
"order_by" => "name:DESC",
"favorites" => false,
"my_items" => false,
);

 

It either returns everything or nothing.  Can anyone point me in the right direction please, I have read most of the links within the community but nothing appears to be able to filter and count.

 

Any help much appreciated.

Outcomes