MassProspecting / docs

Public documentation, roadmap and issue tracker of MassProspecting
http://doc.massprospecting.com/
1 stars 0 forks source link

Test & Fix: Skip repliers. #350

Open leandrosardi opened 1 week ago

leandrosardi commented 1 week ago

An outreach should be canceled during the delivering time if rule is skip-repliers and lead already replied.

This logic is coded into the.SDK. So, it is a good issue to debug on production.

Query to find assigned leads

select i.id, i.status, l.first_name, l.last_name, p.name, o.body
from rule_instance i
join "outreach" o on i.id=o.id_rule_instance
join "lead" l on l.id=o.id_lead
left join "profile" p on p.id=o.id_profile 
where i.id_rule='5c1c1038-01a5-4afc-a6db-395f79500b53' -- id of the rule that creates the followup
order by p.name asc