How to update timestamp in DB when scenario run is completed

Right now I have a Iterator module in my Scenario flow, and adding a step where ‘I write timestamp into datastore’ would result it running multiple times due to the Iterator. Is there a way to place the module outside the iterator loop where I have it only run once?

Looking at the scenario test log: 4:32 PM The scenario run was completed.
Is there a way to utilize this info and timestamp and update a record in the datastore?

Welcome to the Make community!

Combining Iterator Bundles Using Aggregators

Every result (item/record) from trigger/iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.

Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.

Example

Here is an example of how your scenario could look. See the gray shaded background? That’s your “Loop”.

This is just an example. Your final solution may or may not look like this depending on your requirements.

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

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.