Re: Need campaign to remove people from lists containing certain words

SanfordWhiteman
Level 10 - Community Moderator

Re: Need campaign to remove people from lists containing certain words

The logic that doesn't exist is (in pseudo-code):

forEach( emailAddress in listOfAddresses )

forEach( leadId in emailAddress.allLeads )

forEach( list in is leadId.listMemberships )

if( list.name.containsPattern(".*(word1|word2).*")

list.removeMember(leadId)

end

end

end

end

Now, you can actually build something like this offline using the API (not actually so easy, since it involves polling for all the lists). But for practical (UI-only) purposes it isn't possible.

Jay_Jiang
Level 10

Re: Need campaign to remove people from lists containing certain words

you will have to do something like this to achieve what you want, hopefully you don't have too many lists to list...

pastedImage_0.png

pastedImage_1.png