Matching email addresses against a list in Google Sheet

Hi there,

I’ve stumbled upon a seemingly simple task and I can’t seem to solve it. I have an automation that reads emails and based on the content, writes an auto-response. The problem is when filtering. I have many options to do basic filtering in Make: within and between modules. But what I need is an option to search through a google sheet where all the blacklisted emails are, and do continue the scenario only with the ones that are not listed. But this is the part, where I got stuck:

  1. If I use a search rows module, it starts an iteration, so if I have 20 incoming emails to process and 30 row blacklisted emails, then it will produce 600 bundles.
  2. I can use an array/text aggregator, but that doesn’t help either, because if it encounters a blacklisted email, it will still force through the other 29 bundles and the scenario runs.
  3. I can’t find a way to use the iteration and the filter option at the same time, in one scenario without triggering hundreds of bundles or losing the ability to filter out the blacklisted emails.

To make things more complicated: I must be able to filter out not just emails as a whole, but emails that contains a certain domain (i.e.: @example.com). So I have two columns: column A contains whole emailes, column B contains domain endings.

@samliew or any pros out there, if you can lend me a hand with this, I would really appreciate it!

This looks similar to what this other user is doing: Filtering from a Google Sheet - #15 by Lionel_LASERSHOP

Hope this helps! Let me know if there are any further questions or issues.

@samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

2 Likes

Hi Janos,
Thank you Sam mention my post.
Janos, Sam gave me the solution, i can give you the blue print (WIP, but already advanced), juste PM me and give your email :hugs:.

i did the join operation directly in a Gsheet Cell (one cycle less on make, one credit less…)
image

3 Likes

Janos, the json, is in mp :wink:

:tada: Wow guys, you are great, thanks for the help! :star_struck: The solution was indeed using a textjoin function in GSheet, then map it with a “Get a cell” module, then finally use the “Text operators: Does not match pattern” as filter.

I never imagined that this operator could be so useful. :face_with_open_eyes_and_hand_over_mouth: To be honest, I’m still not sure, how it works, but it managed to filter out fully and partially matching email addresses while passing through those that needed to be passed through. I’m just amazed. Is there somewhere to read more about this operation?

Thanks again for your help both of you!

You gotta do the Make Academy if you haven’t yet, it covers almost everything you need to know about Make!

Yes, I’ve done it all, it was really useful, and I am a Make.com advocate ever since that. (Though I can’t recall that I learned in depth about that.)

Great to hear :hugs: !
As i said in mp, my scenario is a little more complex than yours (type of requests segmentation & routing to different GPT’s / Thread ID conservation / fallback route) but i think it’s the best way to have more precise AI answers, due to different prompts and dedicated files ressources.

I let you analyse my scenario and see if it can suit your needs.
Bye.

1 Like