How to use stored values in the module Set Multiple Variables in a different route?

I have this scenario (image 1), and the router first executes the top route, starting with a Google Drive module and finishing with two Set Multiple Variables to store some values I want to use later.

Why can’t I map the values stored in the top route in the bottom route? The execution is clockwise. It was not supposed to let me map the values in the last modules of the bottom route (image 2).

How does it work? Thanks!


Hey Alexandr,

I had the same question when I started using the Set Multiple Variables module with routers.

To use the variables you set in the top route, you’ll have to use a Get Multiple Variables module to fetch the variables from the top route.

Hope that helps!

2 Likes

Thanks for the reply @IOA_Brett. I set the Get Multiple Variables and still can’t see the modules in the bottom route.

The modules are Text Parser (with regex) and Google Drive, as shown in my first message.

Setting the Get Multiples Variables in the bottom route does not work either.

Any idea how to fix it? Or where do you suggest to set the Get Multiples Variables?

Sorry I think my response was a little vague.

On the top route use the “set multiple variables” module (For the sake of an example let’s say the variable is named “test_1”.

Then on the bottom route use a “get multiple variables” module and input the variable name “test_1”. Now you should be able to access the value set in the top route.

3 Likes

Thanks, @IOA_Brett. I had just found the solution seconds before your reply.

The problem now is each of my Set Multiple Variables modules receives two outputs (2 operations and two outputs each, a total of 4 outputs that I need to map in the Get Multiple Varibes).

However, the Get Multiple Variables module only receives one value from each Set Multiple Variables.

Do you know how to fix it?

It appears that you are doing a global match in the Text Parser modules, which returns more than one bundle.

Every result (item/record) from a search/match module will output a bundle. To “combine” them 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 has applies to many use-cases.

This way, you need to only set one variable, an array of matches.

Screenshot_2024-01-31_100125

2 Likes