Skip to content

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.

License

Notifications You must be signed in to change notification settings

OneDrive/samples

Repository files navigation

OneDrive : Samples and Scenarios

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

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.

Scenarios

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.

Helpful Links

These topics and links are often helpful when building applications accessing files stored in OneDrive or SharePoint.

Getting Started

M365 Development

SharePoint

Teams

Viva Connections Development
SharePoint Development
Microsoft Teams Development
One Drive & Graph Files
File Handlers
Authentication

Trademarks

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.

About

Contains samples, scenarios, and guidance for integrating with OneDrive and SharePoint drives, drive items, and files.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published