Skip to main content

๐Ÿš€ Quickstart

Connect to SharePoint Online (v2) with Nango and see data flow in 2 minutes.
1

Create an integration

In Nango (free signup), go to Integrations -> Configure New Integration -> SharePoint Online (v2).
2

Authorize SharePoint Online (v2)

Go to Connections -> Add Test Connection -> Authorize, then log in to SharePoint Online. Later, youโ€™ll let your users do the same directly from your app.
3

Call the SharePoint Online (v2) API

Letโ€™s make your first request to the SharePoint Online (Microsoft Graph) API (fetch a list of all available sites in an organization). Replace the placeholders below with your secret key, integration ID, and connection ID:
  • cURL
  • Node
curl "https://api.nango.dev/proxy/v1.0/sites" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials dynamically via the Node SDK or API.โœ… Youโ€™re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our quickstart to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

๐Ÿ“š SharePoint Online (v2) Integration Guides

Nango maintained guides for common use cases. Official docs: Microsoft Graph API documentation

๐Ÿงฉ Pre-built syncs & actions for SharePoint Online (v2)

Enable them in your dashboard. Extend and customize to fit your needs.

Others

Function nameDescriptionTypeSource code
list-shared-sitesThis action will be used to display a list of sites to the end-user, who will pick the ones he wants to sync. The connection metadata should be set based on the file selection.Action๐Ÿ”— Github
fetch-fileThis action will be used to fetch the latest file download_url which can be used to download the actual file.Action๐Ÿ”— Github
user-filesFetch all files from the userโ€™s drive and sync the metadata for each file.Sync๐Ÿ”— Github
user-files-selectionFetch all selected files from a userโ€™s driveSync๐Ÿ”— Github
shared-sites-selectionThis sync will be used to sync file metadata from SharePoint site based on the ones the user has picked.Sync๐Ÿ”— Github
Questions? Join us in the Slack community.