How to get the latest row only in Watch new rows module

:bullseye: What is your goal?

I want to get the data of the latest row added in my google sheet

:thinking: What is the problem & what have you tried?

I think watch changes module doesn’t applicable in my flow because data is comes from webform I didn’t change the sheet

:clipboard: Error messages or input/output bundles

Choose Manual, From all is not applicable, I don’t know how to use specific ID? I think this is not automatic because it needs to choose? IDK

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Welcome to the Make community!

You can aggregate all the new rows using an array aggregator, then use the built-in function first to get the first item in the array.

Don’t forget to set a high limit so that all new rows will be returned.

Combining Bundles Using Aggregators

Every result/item from some module types (like Trigger / Iterator / List / Search / Match modules) can potentially and likely output more than one bundle. These multiple bundles will individually run subsequent modules once per bundle, which is not optimal in most cases:

  • one operation per bundle per module, which could lead to…
  • use of multiple credits per bundle per module (some modules use more than one credit)
View example screenshots

Aggregator Example

The “Search Rows” module runs one time, returning 999 results (999 bundles).

  • Without Aggregator: the tools module run 999 times (999 operations)


    (and if there are more modules, they run 999 times each)

  • With Aggregator: the tools module only runs 1 time (1 operation)

:warning: Warning: :police_car_light:
This can easily use your entire quota of credits if you are not careful or fail to understand this concept.

To “combine” multiple bundles into a single variable, so that you can process all of the items in a single operation, you’ll need to use an aggregator. Aggregators is a type of module that accumulates bundles and outputs one bundle (unless you are using “Group By”). An example of a commonly-used aggregator module is the Array aggregator module.

You can find out more about some other aggregator modules here:

Question: Which is the best aggregator do you think you’ll need for your use-case?

Setting the Correct Aggregator Source

You need to set the “Source Module” field of the aggregator to where the bundles are coming from. This is usually an iterator module, but can also be a search/list/repeater module, or even the trigger module!

For more information, see “Mapping with arrays” in the Help Centre. I also suggest going through the Make Academy, which also covers the use of Iterators & Aggregators.

@samliew

Hi @Jarome_Olivar ,

To retrieve data from the latest row added in your Google Sheet, the Watch New Rows module will not work reliably if multiple rows are added at the same time.

Instead, please use the Search Rows module and set the required limit in it. After that, add a filter and apply the conditions as shown in the attached screenshot (please note that the screenshot is for reference only).

This approach will ensure that only the most recently added row is retrieved and processed correctly.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation