Quick overview
This workflow syncs appointment rows from a Google Sheets “Appointments” tab to Google Calendar by creating, updating, or cancelling events and writing the Calendar event ID and sync status back to the sheet, with an optional hourly schedule and a dry-run mode for safe review.
How it works
- Runs manually or on an hourly schedule.
- Reads appointment rows from a specified Google Sheets spreadsheet and tab.
- Validates and normalizes each row (date/time, duration, status), detects duplicate Appointment IDs or Calendar event IDs, and plans whether to create, update, cancel, or only write back a status.
- If dryRun is enabled, outputs a summary of the planned changes without writing to Google Calendar or Google Sheets.
- If dryRun is disabled, creates, updates, deletes, or marks events as cancelled in Google Calendar based on the plan.
- Updates the originating Google Sheets rows with the Calendar event ID (cleared on delete), Appointment ID (generated when missing), and a “Sync result” status.
Setup
- Connect Google Sheets OAuth2 and Google Calendar OAuth2 credentials with access to the target spreadsheet and calendar.
- Create a Google Sheet tab named “Appointments” with the expected columns, including Appointment ID, Status, Calendar event ID, and Sync result.
- In the configuration step, set your spreadsheet ID, sheet name, calendar ID, and timezone (and match the workflow timezone setting).
- Leave dryRun set to true for the first run to review the plan, then switch dryRun to false to apply changes and optionally activate the hourly trigger.