Aggregating Variables across Routes

:bullseye: What is your goal?

So i have multiple routes with filters which all end with setting a variable, there could be a scenario where 3 bundles are pre processed on 3 different routes, but in this example its all from one set variable.

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

When attempting to get variable and then aggregate the outcome into a single bundle ive not been able to do it.

Ive tried using different source modules but its just not aggregating, any help would be appreciated!

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

1 Like

Hey there,

get variable already returns a single bundle per execution. Your issue is that the route is getting executed multiple times so check your overall logic.
Find out which module is producing the extra bundles and set that as the source module of the aggregator.

If the logic is meant to be inputs get filtered to one of the 3 routes and set as the variable based on formatting giving us 3 outputs, can i not get the 3 bundles set by the top route in this instance and aggregate them into 1 array?

1 Like

You can, you just need to change the source module of the aggregator to the module producing the extra bundles. That is none of the modules in the screenshot, so check the modules before them.

Hi @Get_this_working ,

To help us troubleshoot this more effectively, could you please share the module setup or scenario configuration screenshots? If possible, including the mapping details will help us better understand the setup and get back to you with a precise solution.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation