Copilot · Community sample

MyApprovals Agent - Act on Microsoft 365 approvals from Copilot chat

View and act on your Microsoft 365 approvals directly from Copilot chat.

Copilot componentReactSPFx 1.24.0-beta.2
Compact inline view of the MyApprovals Copilot component inside a Microsoft Copilot chat, showing a greeting, three action buttons, and a list of pending approvals.

The idea behind the sample

MyApprovals brings your pending Microsoft 365 approval requests into Microsoft Copilot. Ask the MyApprovals agent about your approvals and it displays them inline or in a fullscreen overview, showing the requester, status, and details for each item. Approve, reject, or re-assign a request, and contact the requester by email, all without leaving the conversation.

Built with a SharePoint Copilot App (SPFx 1.24.0-beta.2, @microsoft/sp-copilot-component), the same MyApprovalsCopilotComponent renders both the compact inline card and the expanded fullscreen view, reading brokered Microsoft Graph and SharePoint REST calls with zero token-acquisition code.

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 documentation

A closer look

Keep exploring

Keep the ideas flowing

Back to all possibilities
Microsoft 365 and Power Platform Community Contributor badge

Sharing is caring.

Share what you know.

Contribute a sample, improve the docs or help someone get started. Sample contributors can opt in to the PnP Recognition Program and share their community contributor badge.

Have something to show? Sign up for a community call demo. Fill in the form and we'll arrange a slot based on your availability.