←All posts

How to add approved leave requests to a shared Google Calendar

Turn approved time-off rows into a shared absence calendar. Handle inclusive end dates, changed requests and duplicate prevention without exposing private details.

Add approved leave requests to a shared Google Calendar by reading a trusted approval register, creating one event per approved request and storing the calendar event ID beside that request. Update the same event when dates change so the team sees a reliable absence calendar.

Keep approval and calendar display separate. The calendar helps colleagues plan around confirmed absences; it should not decide whether someone is entitled to leave or approve a request because a form was submitted.

Define the approved source and calendar scope

Use the record where your team already confirms time off. If requests begin in a Google Form, the response sheet is intake. Add a separate decision record controlled by the people who can approve leave.

Use these fields:

FieldWhat it controls
Request IDStable identity for the absence
Person and display nameWho appears on the team calendar
Start dateFirst day away
Last day awayInclusive final date entered by the requester
Full or partial dayDetermines whether times are required
Approval status and reviewerEstablishes eligibility for calendar sync
Request versionIdentifies the dates that were approved
Calendar ID and event IDConnects the request to its output

Choose a dedicated team absence calendar. Decide what its readers should see, such as “Sam away”, and keep private reasons out of the event title and description.

Option 1: Create the calendar event after each approval

For a small team, the approver or administrator can create the event manually after confirming the request. Store the event link in the register and check dates before saving it.

Use all-day events for whole-day absences and timed events for partial days. Apply a consistent naming convention so the calendar is easy to scan. Avoid putting medical, family or other personal details into a widely visible description.

Review changes through the same process. If someone extends leave by a day, update the approved record and the linked event together. Creating another event can leave both the original and revised absence visible.

This method is often enough when requests are infrequent. Automation becomes useful when approved changes are regularly missed or the team relies on several calendars that need consistent updates.

Option 2: Build the calendar sync with Pillow

Pillow is an AI assistant that builds editable workflows from plain-English instructions through its workflow builder. Tell it which source establishes approval, which calendar to use and how changes should be handled.

Start with a preview of proposed events. Check a one-day absence, a multi-day absence and a partial day before enabling calendar writes in your own setup. The prompt keeps the approval decision in the source system.

Build a disabled workflow that syncs approved leave requests to one shared
Google Calendar. Ask for the trusted approval register, request IDs,
status values, approved-version field, date conventions, timezone,
calendar ID and permitted event title. Check required connections first.
Include only requests with an explicit authorised approval for the current
dates. Treat the supplied last day away as inclusive. For all-day Calendar
events, convert it to the following date as the exclusive end. Keep
partial-day times and timezone explicit; flag ambiguous inputs.
Create one event per request ID and save its event ID. Update only the
mapped event when approved dates change. For withdrawn or revoked requests,
prepare a cancellation preview and require confirmation before removal.
Do not alter unrelated events or create attendees and invitations.
Use minimal absence details and omit private reasons. Preserve a change
log, prevent duplicates on retries and flag manually edited events or
incomplete source reads. Show proposed creates, updates and cancellations
before enabling writes. Do not approve leave or change calendar sharing.
Download Pillow

Copy the prompt above, then open Pillow to build your automation.

Option 3: Sync approved rows in n8n

Use a scheduled read of the approval register or a row-change trigger followed by a fresh read. A trigger tells you something changed; the current source record should determine whether the request is eligible.

The n8n Google Calendar node supports event creation and updates. Pair it with the source register and a durable request-to-event mapping.

Build these steps:

  1. Read the request and its current approved version.
  2. Validate the dates, timezone and destination calendar.
  3. Compare the approved version with the last synced version.
  4. Prepare a create, update, no-change or cancellation action.
  5. Apply the permitted action to the mapped event only.
  6. Save the event ID and synced version after success.
  7. Record conflicts and failures for the calendar owner.

Keep the first run in preview mode so you can inspect every proposed action. Existing calendar events may need an initial manual match to their requests; creating all records afresh can duplicate absences that were already entered by hand.

Handle the last day away correctly

People usually enter the final day they will be absent. Google Calendar’s event end is exclusive. For an all-day absence covering Monday 16 November through Wednesday 18 November, the event starts on the 16th and ends on the 19th. Google Calendar event fields.

A one-day absence follows the same rule: start on the day away, end on the following date. Setting identical start and end dates does not represent a full day.

Use date arithmetic for all-day events. Adding a fixed 24 hours to a timestamp can create awkward results around daylight-saving changes. Keep date-only values separate from timed events throughout the workflow.

For a half-day request, require explicit start and end times or an agreed mapping such as the person’s working morning. “Morning” means different hours across teams. Store the timezone rather than assuming the workflow server’s timezone matches the employee’s.

Update the approved version, not an unreviewed edit

Suppose a fictional request for 16–18 November is approved and synced. The requester then changes the last day to 20 November. The calendar should not automatically expand the absence unless the approval process confirms the new dates.

Store a version or a fingerprint of the approved fields with the decision. Compare it with the current request before syncing. If the fields differ, route the request back to the appropriate review state.

Keep the last approved event visible while a proposed extension is pending, unless your team explicitly chooses another display policy. Label that policy in the register so the calendar owner can explain what colleagues are seeing.

For withdrawal or revoked approval, prepare a clear cancellation action against the stored event ID. A missing row is not enough evidence to delete an event: the source query may be incomplete, filtered or temporarily inaccessible.

Avoid duplicates and preserve calendar edits

Store the request ID in the event’s private metadata when your integration supports it, as well as in the mapping register. This gives you a recovery path if event creation succeeds but writing the event ID back fails. The Calendar API supports private extended properties. Calendar insert reference.

If your connector cannot store or search that metadata, keep uncertain writes in an exception queue and reconcile them before retrying creation. A blind retry can produce a second event even when the first write actually succeeded.

Define which fields the automation owns. It may control title and dates while preserving an administrator’s note. If someone manually changes a controlled field, flag the difference instead of silently overwriting an intentional correction.

Do not add the whole team as attendees to an informational absence event. A shared calendar can provide visibility without invitation emails. It also does not automatically block the absent person’s primary calendar; personal availability needs a separate, explicitly chosen process.

Questions about leave-calendar automation

Does the shared calendar automatically decline meetings?

No. An informational event on a team calendar does not establish that behaviour on someone’s primary calendar. Treat personal out-of-office settings as a separate configuration.

Can overlapping requests be merged into one event?

Keep one event per approved request unless your process explicitly combines them. Flag overlaps for review. Merging can make later changes or cancellation of one request difficult to trace.

Should leave balances appear in the calendar?

Usually the calendar only needs to show availability. Keep balances and approval evidence in the appropriate restricted source, and avoid copying personal or administrative details into a broad team view.

Keep going

Browse all guides