How to create a conditioned action based on google sheets search rows module output?

Hi everyone, I’m not very pro at make but i would like to make things works for learning problem solving.

I would like to use output from a google sheets search rows module, to add it to a google sheets depending on if is already in the file or not.
So, if the searched term is already in a column (B), I would like to write it (the output) in an other column (C). If it isn’t in the colum (B), i would like to add the term (input) in the same column (B).

Here is comes the problem:
The search rows (standard) module returns only numeric output (true/1) and (false/0) under “Total numbers of bundles”. I need the actual term (text) I used in the input.

So I did it, with search rows (advanced). The module returns the term I used like input but only (obv) if it matches condition of existences in the defined row.
So data with total numbers of bundles = 1, it shows in text (showing the term matched) and the data not matched, with total numbers of bundles = 0, it shows only “0” in output and not the input data in a text value.

With these results, I can use the matched data, but not add the not matched data in the sheets because is not returning the text value.

How can i get the text value for not matched data? Is there a query google expression?

I already used an interator module, for trying to extract the value of input but with no changes.
I tried adding, “if is and is not” in the query function with no clue.



Providing useful things:

module-1-output bundle op2.txt (46 Bytes)
module-1-input bundle op2.txt (216 Bytes)
module-1-output bundle.txt (122 Bytes)
module-1-input bundle.txt (221 Bytes)

blueprint.json (99.7 KB)

Thanks in advance

Welcome to the Make community!

Search modules already return one bundle per result, and not an array.

Using an Iterator module immediately after a search module does not make sense.

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Thanks, I added your suggested materials.
Thank you for the explanation about the Interator module, it was just a try.

No one have a solution?

Thanks