Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
(NOT(status='AA' AND called_count > 5) AND NOT(status='NA' AND called_count > 5))
chrisclasman wrote:is there a way to filter out leads that have been dialed > 5 times and have been AA every time
williamconley wrote:The "every time" bit is what kills it. Vicidial lead management tools do not take into account or have access to prior dispos. Just that last one.
((SELECT count(*) FROM vicidial_log WHERE status IN('AA','CRAPPYSTATUS1','CRAPPYSTATUS2') AND vicidial_list.lead_id = vicidial_log.lead_id) <= 5)
blackbird2306 wrote:williamconley wrote:The "every time" bit is what kills it. Vicidial lead management tools do not take into account or have access to prior dispos. Just that last one.
Yes, that is absolutely true "every time" is the problem here, though beyond a certain called_count number (maybe not after 6 calls) they are in bad quality no matter what status history they had before. But this "every time" is also possible to achieve with FILTER feature:
FILTER SQL:
- Code: Select all
((SELECT count(*) FROM vicidial_log WHERE status IN('AA','CRAPPYSTATUS1','CRAPPYSTATUS2') AND vicidial_list.lead_id = vicidial_log.lead_id) <= 5)
Change the statuses AA, CRAPPYSTATUS1, CRAPPYSTATUS2 to the statuses, which are considered as "CRAPPY". This will filter all leads, where the sum of calls with crappy status are in total higher than 5 !! Be careful and pay attention for possibly high database load.
blackbird2306 wrote:I tried it and it worked without any problems with call log size of 1.5 million rows. The higher impact on AST_VDhopper.pl script wasn't that significant. But again my advice "be careful and pay attention for possibly high database load". The filter feature should always be treated with extreme caution.
blackbird2306 wrote:... You are not joining the whole table only a part of it. ...
blackbird2306 wrote:As Vince-0 pointed out, it's possible to do this manually with "Advanced Lead Management Tools". But I think your aim is not to call these leads rather than making a new list? Then you can use the FILTERS feature. Make a new filter for example with FILTER SQL:
- Code: Select all
(NOT(status='AA' AND called_count > 5) AND NOT(status='NA' AND called_count > 5))
After that assign the new filter to the campaign in campaign settings!
Also take a look at "List Order" and "List Order Secondary" in campaign settings. Try it with "DOWN COUNT", which means "it starts with least called leads and works its way up".
Users browsing this forum: Google [Bot] and 124 guests