Lead filter check if valid
Posted: Tue Oct 25, 2022 8:17 am
Hi guys.
I have this lead filter where it select new status or status in 'A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP' as long they are less than or equal to 3 call count and then it will try it again after 3 hours of attempt.
(status = 'NEW') OR
(
status IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP') AND
called_count <= 3 AND
last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -3 HOUR),' ',CURTIME())
)
or it must be like this?
(
((status IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP')) and
(last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -3 HOUR),' ',CURTIME())) and called_count <= 3) or
(status NOT IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP'))
)
What I want is this.
If a number was dispo as Answering machine or any of that status inside of an IN statement then if the manager manually reset the leads I want the answering machine number to be loaded after 3 hours from the last attempt(example 12:00pm last called it must be loaded at 3:00pm even the manager reset the list).
I copied the last condition from the DROP72HOUR entry.
I have this lead filter where it select new status or status in 'A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP' as long they are less than or equal to 3 call count and then it will try it again after 3 hours of attempt.
(status = 'NEW') OR
(
status IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP') AND
called_count <= 3 AND
last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -3 HOUR),' ',CURTIME())
)
or it must be like this?
(
((status IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP')) and
(last_local_call_time < CONCAT(DATE_ADD(CURDATE(), INTERVAL -3 HOUR),' ',CURTIME())) and called_count <= 3) or
(status NOT IN ('A', 'AA', 'B' 'AB', 'NI', 'N', 'NA', 'NL', 'B', 'DROP'))
)
What I want is this.
If a number was dispo as Answering machine or any of that status inside of an IN statement then if the manager manually reset the leads I want the answering machine number to be loaded after 3 hours from the last attempt(example 12:00pm last called it must be loaded at 3:00pm even the manager reset the list).
I copied the last condition from the DROP72HOUR entry.