Count how many agents have called today in database

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Count how many agents have called today in database

Postby k.atilano » Mon Jun 05, 2017 9:20 am

Hi, I am a laravel developer and i'm creating a report that needs the number of contacted leads per agent per day, how do I do this? which database should I look for? and is there any equation to it? I'm looking at the vicidial_agent_log but when i do a count on todays log it doesn't match the results in AST_team_performance_detail.php. Please help :| Thank you :P
k.atilano
 
Posts: 5
Joined: Fri Mar 17, 2017 5:06 am

Re: Count how many agents have called today in database

Postby mflorell » Mon Jun 05, 2017 2:37 pm

You have the right table, but you have to put conditions on the query, the lead_id should be non-zero and do the count on distinct records by lead_id
mflorell
Site Admin
 
Posts: 18338
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida


Return to Support

Who is online

Users browsing this forum: No registered users and 97 guests