Hi everyone,
I’ve created an automation in Make that pulls vacation data from Google Sheets and sends an overview via Gmail for the upcoming month. The setup works correctly, but I’m facing one issue: I receive multiple emails instead of just one summary email. The number of emails depends on how many records pass through the filter.
Goal:
I want to send only one email that includes a summary of vacations for all employees in the upcoming month.
Current Scenario (Modules Overview):
- Google Sheets (Search Rows)
Headers:
A2 – Date
B2 – Team
C2 – FullName
D2 – Query
E2 – Amount MH
F2 – Amount MD
- Filter
- Filters rows for the upcoming month
- Includes only rows where Query = “Dovolená” or “volno”
- Array Aggregator
Aggregated fields: Date
, Team
, FullName
, Query
, AmountMD
Group by: FullName
Stop processing after an empty aggregation: Yes
- Iterator
- Iterates over aggregated array
- This is where the problem begins – multiple bundles are created here
- Result: one email is sent per bundle (e.g., 4 names = 4 emails)
- Tools: Numeric Aggregator
Source module: Iterator
Function: SUM
Value: parseNumber(ifEmpty(AmountMD; 0))
Result is correct, but again, it’s calculated separately per bundle
- Tools: Text Aggregator
Source module: Numeric Aggregator
Row separator: New row
Group by: (empty)
Value:
- Total vacation days for {{FullName}}: {{25.result}} days
- Gmail (Send an Email)
- Recipient: Me
- Content:
**Vacation Summary per Employee:**
{{26.text}}
Regards,
Your Make Automation ```
Problem:
Everything works except that I receive one email per employee, instead of a single email with all employees’ vacation totals.
What I Want:
- One aggregated summary email
- That includes all employees and their vacation totals
- Sent once per run, not once per bundle
If anyone has experience working with aggregating data after an Array Aggregator without using an Iterator, or can help restructure this scenario to output one email, I’d really appreciate your help!
Thanks in advance