This repository contains Microsoft authored sample code to help you integrate with OneDrive and SharePoint files, drives, and drive items.
You can browse Microsoft and community created samples across many repositories through the unified sample gallery.
Samples demonstrate specific integration techniques to connect with OneDrive or SharePoint. Please see the readme files for each sample for full details.
Name | Description |
---|---|
file-handler | Shows how to build a OneDrive/SharePoint file handler. This allows you to provide custom open, edit, and create actions for various file types. |
file-picker | demonstrating how to use the latest service provided file picker for M365 allowing your users to easily and consistently open files stored within OneDrive and SharePoint. |
Name | Description |
---|---|
list-view-service-integration | Demonstration of securely calling a remote AAD secured service from an SPFx list view command. Includes full setup instructions. |
onedrive-files-hooks | This sample application shows how an application (desktop application) can connect with either OneDrive for Business (ODB) or the OneDrive consumer (ODC) service. |
throttling-ratelimit-handling | Sample showing how to use the RateLimit response headers to avoid getting throttled. |
These topics and links are often helpful when building applications accessing files stored in OneDrive or SharePoint.
Getting Started
Viva Connections Development
SharePoint Development
Microsoft Teams Development
One Drive & Graph Files
File Handlers
Authentication
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.