Templates / Collect absences from Google Calendars

Collect absences from Google Calendars

Needs changes

by Jonathan ✓ · 3,893 views · created 2022-02-17 · HR

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Cron. 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 13 nodes and runs on a schedule (legacy Cron node). Along the way it connects Google Calendar.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Previous Month (Date & Time): formats or calculates dates
  2. Get previous months events (Google Calendar): get many
  3. Check Summary for Illness or Holiday (Switch): routes items into 2 branches
  4. Filter Holiday Days (Edit Fields (Set)): sets or maps fields
  5. Filter Illness Days (Edit Fields (Set)): sets or maps fields
  6. Combine Holiday Counts (Code): runs custom JavaScript code
  7. Combine Illness Counts (Code): runs custom JavaScript code
  8. Merge: merges the data from its input branches
  9. Build the message to send (Code): runs custom JavaScript code
  10. Send Email: sends an email over SMTP

Services it uses

Google Calendar

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Cron in 1st of Every month at 8am: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Cron
1st of Every month at 8am
Schedule Trigger

Nodes used (9)

From the author

This workflow checks a Google Calendar at 8am on the first of each month to get anything that has been marked as a Holiday or Illness. It then merges the count for each person and sends an email with the list. To use this workflow you will need to set the…

Excerpt from Jonathan's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.