Preview unavailableThe idea behind the sample
Holiday Planner is a SharePoint Copilot App built as five SPFx 1.24 Copilot Components under a single declarative agent. Each tool renders a live React card in the Copilot conversation: an inclusive working-day count, the next long weekend with the working days until it and any bridge-day suggestion, a full-year, month, or upcoming holiday list, a working-day check for a specific date or named holiday, and a side-by-side comparison of regional calendars.
Expanding a card opens a shared dashboard with calendar tabs, holiday details, and a Vacation Optimizer. Holiday data is read from a SharePoint list under the signed-in user's delegated identity, configured through a tenant storage entity, with demo data as a labelled fallback. The default country resolves from the query, a OneDrive-saved preference, the user's profile, or browser hints, and the pure planning calculations are unit tested.
Make it your own
Start with the author's setup instructions, explore the implementation, and adapt the pattern to your environment. Sample code stays in its original repository, together with its requirements, license and contribution history.
Read the source documentationA closer look
Preview unavailable
Preview unavailable
Preview unavailableKeep exploring
- Overview of SharePoint Copilot Apps — Extend Microsoft Copilot with interactive experiences built with the SharePoint Framework.
- Build agents for Microsoft Copilot — Extend Microsoft Copilot with declarative agents, plugins, and connectors.
- OneDrive app folder for Microsoft Graph — Store per-user application settings in a dedicated OneDrive folder with the Files.ReadWrite.AppFolder permission.
