Skip to main content

Overview

The SharePoint integration enables file syncing from Microsoft SharePoint Online to your Zarna CRM. Router: api/app/routers/sharepoint.py Service: scripts/sharepoint_sync_service.py

Features

  • OAuth authentication with Microsoft 365
  • Automatic file sync from SharePoint sites
  • Document library integration
  • Version tracking

Setup

1. Connect SharePoint

POST /api/sharepoint/oauth/init

2. Configure Sync

POST /api/sharepoint/sync-config
{
  "site_url": "https://yourcompany.sharepoint.com/sites/deals",
  "document_library": "Documents",
  "company_id": "uuid",
  "sync_frequency": "hourly"
}

API Endpoints

List Files

GET /api/sharepoint/files

Sync Now

POST /api/sharepoint/sync

Next Steps