Delete (programmatically/module) people from target lists who have unsubscribed or have invalid email addresses

Is there a utilty or app to delete people from target lists that have either unsubscribed or have invalid email addresses?

I know the surpression system does not send to these people but it skews numbers, I also prefer a “clean” system.

Has anybody done/tried this?

thanks

Hello Jobst,

there is no easy configuration / UI option for that.

You should be able to use the JSON API for that:

however, you’d need a trigger - either a webhook to an external system or a logic hook.
If you’re going down the logic hook route, you can use PHP code directly as well.

Since your required feature is fairly simple in many marketing automation software, I usually do this in Mautic. There, you’d simple build the appropriate nocode workflows.

1 Like

I have this debate with clients all the time. They always want to “clean” dead leads and bad emails, etc.

NO!!! The is valuable information. You know know you have treid to target this person and their email is invalid. This will prevent you from trying to contact them again. This is valuable information. Why would you want to delete it?

Most cases clients just don’t know how to filter views properly to see only active targets, leads and contacts. You just have to mark them in some way in which you can filter on. Basically you can mark them by status as “dead” or “invalid” and then just filter them from your views.

here’s an example (after you run this workflow you could if you REALLY want to delete them select only records with invalid emails)

1 Like

You did not read my question properly - delete entries from target lists - I do NOT want to clean leads/contacts.

My bad I misread it. Yeah, you can’t do that with workflow I don’t think. You can add a relationship but not delete one.
I would write a scheduled job to run once a day or something to look for leads or targets that have an invalid email and a relationship to prospects lists and just delete the relationship to prospects lists if that returns true.

Naah all good, it’s just strange that SuiteCRM doesn’t have an inbuilt function, and maybe even add to the description field a line like “taken of target list XVZ due to invalid address”.

You can use worklfow like I demonstrated above to populate a field or a status or a description if you like. That’s easy exaclty like I screen capped it.