I have a scenario that searches for hotels using a Google Maps module. It provides me with 5 bundles, and for each one, I collect some variables and run a “Text Aggregator” that uses HTML codes which are lines of a table (div). Therefore, I need to iterate through the 5 bundles.
However, I need to know the “Total number of Bundles” from the Google Maps module because this information will influence subsequent modules. For example, I need to know if the Total number of Bundles is equal to 0.
As I am using the “text aggregator”, this information about Total number of Bundles is not available.
Keep in mind that my Text Aggregator has the HTML codes to iterate, so I do not store unnecessary information in this module.
blueprint.json (84.0 KB)
1 Like
I made this image to simplify things.
I need the information 'Total number of bundles’ in module 17.
Remember, I cannot insert this information in module 25, because it involves an HTML code iteration used to create a page.
1 Like
Hi @Zeplanilha,
Yes, this can be done using a router and a set variable to store the value of the total number of bundles. After the text aggregator, you can use a get variable to retrieve the result from the stored variable.
Here is an example :
You can use a filter to ensure it does not run for every bundle, preventing unnecessary operation usage.
Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation
1 Like
Firstly, thank you for the step-by-step explanation.
I applied the modifications as you suggested, but I can’t see the variable from module 33.
I did a test: I inserted a “get variable” module in the upper branch and noticed that it appears. I tried to put the code in the lower branch, but notice that the variable is not available.