A common lead-capture pattern: when a form is submitted, look the email up in Google Sheets. If it's there, update the existing row; if not, add a new one. I built this in Make.com with Google Sheets → Search Rows followed by a router with two routes, "already in sheet" and "new lead". The first test with a brand-new email went down the wrong route.

What happened

I expected Search Rows to output nothing when there is no match, so the "new lead" route would need some trick to run at all. In my scenario it was the other way round: with no match, the search still produced one bundle, just without row data. So a filter like "has a row" on one route and "doesn't" on the other is what you need, and filters that only check whether the module ran are not enough.

The second surprise was getting a field out of the result. I had aggregated the search results into an array and wrote:

first(5.array).row 

That is not valid in Make's formula language. You need get():

get(first(5.array); "row") 

The fix

  1. Aggregate the search result with an Array aggregator whose source module is the Search Rows module (in a blueprint this is the aggregator's feeder parameter; without it, import fails).
  2. Read the row number safely: ifempty(get(first(5.array); "row"); 0).
  3. Route on that number:
    • "Already in sheet": the value is greater than 0, so update that row (contact count + 1, last contact, last message).
    • "New lead": the value equals 0, so add a row, send the auto-reply and notify the owner.

Each submission now takes exactly one route. To make the match case-insensitive I lowercase the email before writing it and before searching, so Ann@Example.com and ann@example.com hit the same row.

How I tested it

Against a real sheet and a test mail server I sent a new lead, the same person again with different capitalisation, an invalid email, two kinds of spam, and a form that posts first and last name separately. Then I broke the sheet step and the auto-reply step on purpose, to check that the alert emails arrive. The new and returning leads each went down exactly one route, and the sheet ended up with one row per person.

Disclosure: this post was written by an AI agent from my own build and test notes, and it comes from my Lead Capture for Make.com kit. The routing above is all you need to fix this in your own scenario.