How to Send Uploaded Files to SharePoint Automatically

Form submissions that include uploaded documents can route directly into your SharePoint document libraries (organized by service type, department, or client), without anyone touching them between submission and storage.

Build Time & Skill

10-15 min

Beginner

What you'll learn

How to use Cognito Forms' File Sync feature with your Microsoft account to automatically deliver uploaded documents into the right SharePoint document library, structured by the data in each submission.

An illustration of an Onboarding form's submission existing in Cognito Forms and syncing to SharePoint simultaneously.

An illustration of an Onboarding form's submission existing in Cognito Forms and syncing to SharePoint simultaneously.

Teams that manage records in SharePoint already know how documents should be organized. However, the gap between where files arrive and where they need to live becomes a tedious task to manage. Every time a file is uploaded to your online form, someone on your team has to pull it out, find the right document library, navigate to the right subfolder, and drop it in.

Cognito Forms’ File Sync closes that gap by delivering submitted files directly into SharePoint the moment a form is submitted, with the folder path and file name already created from the form data.

This approach is well suited for teams that:

  • Manage structured document records in SharePoint and need submitted files to land in the right library without a manual intake step.
  • Route documents across departments or practice areas where consistent naming conventions and folder hierarchies are required.
  • Collect documents from external parties (clients, vendors, or partners) and need them in a governed, accessible location immediately.
  • Have compliance or audit requirements that depend on documents being filed predictably and traceable to the original submission.

Understanding File Sync

File Sync uses the OneDrive connector in Cognito Forms to deliver uploaded files to your Microsoft storage. This includes SharePoint document libraries, not just personal OneDrive folders. When your Microsoft account has access to a SharePoint library, you can point File Sync directly at it during setup.

Before you configure the integration, here’s how the sync behaves:

  • Files are copied to SharePoint as independent records. The original upload remains in Cognito Forms. SharePoint receives its own copy. Changes or deletions on either side don’t affect the other.
  • Resubmissions add files, they don’t replace them. When someone updates an entry and uploads a new version of a document, only the new file is delivered. The previous version stays in SharePoint exactly where it was filed.
  • Removing entries in Cognito Forms leaves SharePoint untouched. Documents already delivered to a document library are not affected by anything that happens to the originating entry.
  • Folder paths and file names are built from submission data. Every document can arrive in SharePoint already named and sorted. No renaming, no reorganizing required after the fact.

Before You Begin

Make sure you have the following in place before configuring File Sync:

  • A form with a File Upload field: File Sync only works with File Upload fields.
  • A paid Cognito Forms account: File Sync is available on Pro, Team, and Enterprise plans. Each file transferred counts toward your organization’s API usage. See Integration Billing for details.
  • Microsoft account with SharePoint access: Any Microsoft account with Contributor or Editor permissions on the SharePoint document library you plan to use. Visit Microsoft’s support articles for more information on SharePoint folder permissions.
  • Organization Administrator access: Only Org Admins can create new integrations. After initially creating it, Form Admins can connect forms to the existing integration.

Step-by-Step Setup: How to Send Files to SharePoint

Connect your form to SharePoint by enabling Sync Files to Cloud Storage in your File Upload field’s settings, authorizing your OneDrive account, and configuring how files are named and organized. The integration is shared across your organization once created, and additional forms connect to it without requiring anyone to sign in again.

Follow along with our support tutorial

Check out our Sync Files to Cloud Storage video tutorial to learn more about setting this up.

Step 1: Enable sync on your File Upload field

Turn on the setting that allows you to connect your File Upload field to your SharePoint document library.

Animated GIF showing how to enable File Sync with SharePoint on a form in Cognito Forms

To do this:

  1. Open your form’s Build page and select the File Upload field that will collect documents.
  2. In the field settings, enable Sync Files to Cloud Storage.
  3. Select OneDrive as your storage provider. (This is the connector used for both OneDrive and SharePoint destinations.)
  4. Sign in with the Microsoft account that has access to your target SharePoint library when prompted.

Step 2: Select your SharePoint document library

This step is where you point File Sync at SharePoint rather than a personal OneDrive folder.

Animated GIF showing how to select your SharePoint document library folder for the File Sync feature in Cognito Forms

To do this:

  1. Under Connected Folder, browse to the SharePoint document library where submitted files should be delivered. SharePoint libraries your Microsoft account has access to will appear alongside any personal OneDrive folders
  2. Select the document library (or a folder within it) as your destination.
  3. Optionally, select Change Account to use a different connected Microsoft account.
Quick Tip

Choose a top-level document library or a broad containing folder here. In the next step, you can configure a subfolder structure automatically. You don’t need to pre-create every subfolder for every matter or client.


Step 3: Select which fields to include

Screenshot of the setting to turn File Sync on or off for specific form fields

If you have multiple File Upload fields on a form, choose which fields should deliver the files to SharePoint under Fields to Sync.

  • Forms with more than one File Upload field can sync all of them or a specific subset.
  • Every File Upload field you select to sync on the same form must go to the same folder within the same SharePoint library.
  • To exclude a specific field, turn off the toggle for that individual field. Uploads through that field will remain in Cognito Forms only and won’t be routed to SharePoint.

Screenshot of the setting to turn File Sync on or off for specific form fields

Quick Tip

Once an integration exists, any form in your organization can connect to it, without creating a new integration or re-authenticating your Microsoft account. Just remember, form Administrators can connect forms to an existing integration, but only Organization Administrators can create or delete integrations.


Step 4: Set up dynamic folder paths and file names

This is where File Sync earns its value in a structured data environment. Rather than routing every file into one location, you can configure a folder path and file name that organize themselves from the form data in each submission. This gives you the ability to produce a consistent, predictable filing structure without manual intervention.

Folder Path controls the subfolder hierarchy inside your connected library. File Name defines what each document is called when it arrives. Both are built using tokens, which are placeholders that pull real values from the submission.

Animated GIF showing how to set up dynamic folder paths and file names with a OneDrive or SharePoint integration in Cognito Forms

A real example

Say your legal team collects NDAs through a secure document upload portal. Submitters enter the client name, the type of document, and the relevant matter before uploading the executed file.

You could configure File Sync like this:

  • Folder Path: Client Uploads/[Matter Type]/[Document Type]
  • File Name: [Client Name] - [Document Type] - [Date Submitted]

When Andrew O’Brien submits an executed NDA on May 21, 2026, the file lands at:

📁 Client Uploads > Business Law > Non-Disclosure Agreements > Andrew O'Brien - Non-Disclosure Agreement - 2026-05-21.pdf

That subfolder structure didn’t need to be created in advance. The dynamic folder path and file naming structure you set up did everything for you.

Quick Tip

You’ll notice we used Field Name as the token in the GIF example. The File Upload field in this GIF is inside a Repeating Section, which changes how dynamic file naming works. See the FAQ for a full explanation on how this works.

How can I organize my files and folders?

The structure you choose should match how your team searches for and retrieves records, not just how submissions arrive. Here are several configurations worth considering:


Managing and Monitoring Your File Sync

Organization Administrators have full visibility into all active integrations via Organization Settings > Integrations. From here, you can:

  • Review which forms are currently connected to each integration.
  • Update the global default folder path and file name across all connected forms.
  • Remove an integration. This disconnects all connected forms, but documents already delivered to SharePoint are not affected.

How do I confirm a file was successfully delivered?

Animated GIF showing where to check the status of synced files in Cognito Forms

To confirm a specific file was delivered to your SharePoint folder:

  1. Open any entry and expand the Activity Log.
  2. Look for the OneDrive logo and expand the section.
  3. Click the section that says File Sync to view detailed information, such as whether the file was delivered successfully, when it was sent, and if any errors occurred.

In compliance-sensitive environments, this log serves as a submission-level record of when each document was received and where it was filed.


Additional Features to Explore

File Sync handles document delivery, but these features extend the Workflow you can build around it:

  • Build a structured document intake portal on your team site. Use Guest Access to give employees, contractors, or external partners a secure login where they can submit documents directly into your workflow. No email attachments or manual routing, and every uploaded file syncs automatically to the right SharePoint document library the moment it’s received.
  • Show or hide specific File Upload fields based on earlier answers, using Conditional Logic. Clients only see and upload what’s relevant to their situation.
  • Send an automatic confirmation email when files are received, so everyone knows the submission went through without following up manually.

Stop Filing Documents Manually

SharePoint gives your team the structure to manage records well. File Sync gives your forms the ability to feed that structure automatically. Set up the integration once, configure your folder path and naming conventions, and every future submission delivers its documents exactly where they belong.

When the filing happens at the moment of submission, nothing gets missed and nothing sits in a queue waiting for someone to move it.


FAQ