Google Sheet Get Range Values and Bulk Update Rows - How to use together?

:bullseye: What is your goal?

Hi, I’m fairly new to Make, and I just can’t seem to figure this out on my own.

I have a blank spreadsheet sheet that I need to fill with values and formulas from a template (it has to be this specific sheet). I’m trying to get all the values and formulas from the “Template” sheet using the Google Sheets – Get Range Values module, and then use Google Sheets – Bulk Update Rows (Advanced) to write those values and formulas into the blank sheet.

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

When I run the scenario, it counts tokens, but nothing happens in the blank spreadsheet.

Are my settings wrong? Or is it a problem with the output/input?

I have tried different Settings and different ways to use the first Modules Output, but nothing seems to work.

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

Hey Marie,

I strongly suggest you start with the Make Academy, because what you are mapping is the entire JSON output file of the previous module and not the Rows to be edited (which the bulk update module is expecting).

Also, you are looking for the Create a Spreadsheet from a Template module.

Use Create a Spreadsheet from a Template module directly.

Select the Template Spreadsheet ID from your Google Sheets.

Choose the destination Drive folder for the new spreadsheet.

It does what you’re trying to do in one step. It copies the template sheet to a new sheet with all formulas intact.

Welcome to the Make community!

If you turn on the Map toggle for the “Rows” field, you must map an array of Row (collections) into it. This is also known as a “complex array”. For more information on how to build a “complex array”, see Mapping a Complex (Collection) Structure Into an Array Field below.

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?

Mapping a Complex (Collection) Structure Into an Array Field

The Array Aggregator module is very powerful because it allows you to build a new complex array of collections that matches a later module’s array field to map multiple items (collections) to it. Such fields initially may allow you to manually add individual items, but toggle the “Map” switch on, and you can map an array variable (from an Array Aggregator) containing multiple collections.

Simply select the respective “Target structure type” in an Array Aggregator module.

As you can see from the above example, the “Map” toggle on complex fields are used when you have an array variable (like from an array aggregator).

:clipboard: Note: :light_bulb:
Other combinations of modules may also allow you to generate an array that matches a future module field’s array structure, like “Aggregate to JSON + Parse JSON”, or “Create JSON + Parse JSON”, but this is an advanced topic.

Question: Are you mapping your array into a field that accepts more than one item/collection?

Example

Here is an example of how your scenario could look like:

This is just an example. Your solution may or may not look like this depending on requirements and actual data.

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
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

1 Like

Thx, Simply using the Array aggregator behind the first Module worked. I had tried this before but got an error. This made me try again and I figured out I just needed (in the aggregator) to not “select all” but only tick all boxes for the collums.

No problem, glad I could help with your question:
"Google Sheet Get Range Values and Bulk Update Rows - How to use together?"   :tada:

1. Which was the most helpful post in this thread?

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep this forum organised. :folded_hands:

This marks the topic as solved, so that others can:

  • save time when browsing the latest activity on the forum, and
  • quickly jump to the solution in this topic (from the top)

To do this, simply click the checkbox at the bottom of the post that is the most helpful in answering your question.

a screenshot of post menu options at the bottom of each post
Note: :light_bulb:
:link: Here’s a magic link to a list of your other “unsolved” topics— status:unsolved

2. Have you learnt something new?

Do bookmark this topic so you can easily find and return to this topic in future.

a screenshot of bookmark link at the bottom of the topic

Note: :light_bulb:
:link: Here’s a magic link to a list of your bookmarks— /my/activity/bookmarks

3. Have a different question? Start a new topic.

Do you have a question that is not about "Google Sheet Get Range Values and Bulk Update Rows - How to use together?"? Please start a new topic.

Creating a new topic for each question makes it easier for others with the same problem to search for answers. You are also more likely to receive help sooner as new topics are displayed first on the forum’s “new” page!

@samliew