I need your help on how to complete this workflow.
Expected outcome: Group information by surname and, at the same time, perform some calculation operations.
Starting from this example file:
The expected outcome is to output the following result into a Google Docs document using the “creating a document from a template” Google Docs module:
Surname | sum(Hours*HourlyCost) | Join of the services | sum(Hours)
Which for the surname “Rossi” would become:
Rossi | (5*50)+(12*100) | Service1, Service 2 | (5+12)
Zambianchi | … And so on.
This is the flow I’ve currently set up, and it correctly returns the calculations and unions for each person. However, I don’t understand how to “join” the results of the numerical and text aggregation operations I’m getting from the three different router branches, using the surname as a reference.
This is part of the output from module 6 (array aggregator), where “surname” was used as the grouping element.
The iterator then iterates through the array elements, which are now ordered by “surname.” Below there is part of the output.
Finally, the router performs the three calculation operations:
-
Module 31 = multiplication of Hours*HourlyCost, and sum
Here the setup: -
Module 34 = union of services
-
Module 38 = sum of Hours.
This is part of the output from module 31, which as you can see does the operations as it is expected to do.
Now, what I can’t figure out is how to combine all three results that I’m getting from the three branches based on the surname so that I can map the respective variables and insert them into the placeholders of the Google Docs template.
From the branch of module 31 → I get surname & total cost;
From the branch of module 34 → I get surname & services;
From the branch of module 38 → I get surname & total hours.
Attached the blueprint if it might help…
Please, I need your help to figure out the solution. Thank you!
Invoice_generation.json (23.8 KB)











