@{ ViewData["Title"] = "Home"; }

📅 Calendar Sync

This application synchronizes your Microsoft 365 Calendar changes into an Excel Online file (CalendarSync.xlsx) in your OneDrive root folder every hour.

@if (User.Identity?.IsAuthenticated == true) {

You're signed in. Click Enroll to opt into calendar synchronization.

Enroll for Sync } else {

Sign in with your Microsoft 365 account to get started.

Sign In with Microsoft }

How it works

  1. Sign In — Authenticate with your Microsoft 365 account.
  2. Enroll — Register for calendar sync (stores your user ID securely).
  3. Auto-Sync — Every 60 minutes, the background worker pulls calendar changes using Microsoft Graph delta queries and appends them to CalendarSync.xlsx.
  4. Resume — Delta links are saved per user, so syncs resume exactly where they left off — even after a server restart.