n8n and workflows

Move documents and metadata into SharePoint with n8n

Reading time
13 minutes
Updated
Published
Topic guide
n8n automation
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Network storage enclosure with an indigo drive bay handle on oak

Your employees search SharePoint for a report and cannot find it, because it is in the wrong folder or has no case number. Now n8n is supposed to move the documents into SharePoint by itself, and you wonder how to make sure the filing is really right afterwards.

A useful n8n SharePoint integration does more than put a file somewhere. It picks the correct site and library, preserves traceable business references such as the case number, and sets the required metadata, meaning details such as case number and document type. Then it confirms that everything has arrived. Who may see what, which file version counts and what happens on a second attempt need explicit rules. One test upload that works does not yet prove that the whole filing process works.

An example: an air-conditioning maintenance company in Marseille with 40 employees sends technicians out to customers every day. After each job, they write a service report in their field-service app. Today, Nicolas from the office uploads the reports into SharePoint by hand in the evening and links them in the CRM, the program with the customer data. In future, n8n should do this.

Key takeaways

  • A useful n8n SharePoint integration hits the correct site and library, preserves traceable business references, sets the required metadata and confirms the outcome.
  • Test sign-in first, then reading in the approved destination, and then a controlled write.
  • If only the CRM link fails, a new attempt must not upload the file again. It adds the missing link.
  • For the direct file operation described there, the n8n documentation checked specifies a 250 MB limit and no built-in segmented upload.

01 / 15

How do sites, libraries, folders and list items differ?

Before n8n files anything, it must be clear where. In SharePoint, a site is the organisational area, at the maintenance company for example the "Customer Service" area. A document library inside it holds files, for example the "Service Records" library, and folders organise the files. Lists can hold structured business information, similar to a table. For your workflow, you need to know whether it should create a file, a list item or both.

The folder address Nicolas sees in the browser is not enough information for your IT team. They need the exact resources and stable identifiers (IDs), and they need to know who is responsible for the filing in business terms. Also decide whether employees may later rename or move files, and what the workflow should do then.

02 / 15

What belongs in a SharePoint filing specification?

Describe the filing with a case from your everyday work. At the maintenance company, the sentence reads: "The approved document for service case S-2048 is stored in the Service Records library, labelled with its case number, document type and receipt date, and linked from the CRM." Such a sentence shows you when the filing has worked and which details are missing.

You can start this week. Write down such a sentence for your most common document, and go through the table below line by line. Each item needs a rule that someone settles in advance.

Item Illustrative value Rule to establish
Business reference S-2048 Which source confirms it?
Document type Service report Who handles unknown types?
Library Service Records Who authorises access?
Filename S-2048-Service-report.pdf How are multiple reports distinguished?
Metadata Reference, type and date Which values are mandatory?
Confirmation File ID and link Where is the evidence recorded?

The names are invented examples and do not come from a real customer configuration. What matters is that no item is missing. Suppose a report arrives without a case number. Then the workflow must not guess from the filename and possibly file the report in another customer's folder.

03 / 15

How do you limit access to the intended SharePoint resources?

Decide whether the workflow works with an employee's sign-in or as its own application without a person signed in. The two have different consequences in operation. Personal access can be affected by changes in the organisation. If the workflow runs with Nicolas's sign-in, for example, and Nicolas moves to another department, the workflow can stop. An application, on the other hand, needs a clear owner and a procedure for renewing its credentials.

Microsoft offers so-called selected permissions, which let you limit access to particular areas, at the maintenance company for example to the Customer Service site. What your IT team needs to consider is in the section "For your IT team" below.

Also record what the workflow should not be able to access, for example the management site. If you can show that it cannot get there, you have useful evidence that the intended boundary really exists.

04 / 15

Why accept authentication and writing separately?

Test in three steps: first the sign-in, then reading in the approved destination, and after that a controlled write. Each step answers a different question. A success message for the credentials in n8n may only show that an application can sign in.

Use a test library or test files that are explicitly approved for this. After the upload, check in SharePoint which employee or which application appears as the editor, whether the file can be opened and whether the people who should see it get access. Also check that a site that is not approved stays out of reach.

Record in the handover documents which Microsoft tenant (meaning your Microsoft 365 environment), which site and library, which node version and which permission model are used, and who is responsible. Without these details, it is much harder later to tell whether a failure comes from a changed policy or from a wrong field mapping.

05 / 15

What does a complete n8n SharePoint workflow look like?

At the maintenance company, an approved service report comes from the field-service app, and n8n receives the document ID, case number, document type and either the file itself or an approved way to retrieve it. The process below is a design for this example and has not been tested as a live integration.

In this example SharePoint workflow, filing runs through these steps:

  1. The workflow first checks whether all required details are present and the format is permitted.
  2. It finds the confirmed link to the service case and determines the destination library.
  3. Before writing, it checks whether this version of the document has already been processed.
  4. Then it stores the file and the required metadata.
  5. It links the file ID that SharePoint returns with the number from the field-service app.
  6. The CRM receives the confirmed link.

The report is fully filed only when all required steps are successfully confirmed. Suppose the CRM is briefly unreachable in the evening, and only the link fails. Then a new attempt must not upload the file again but resumes at the missing link. If metadata is incomplete, the case stays visibly unfinished, even if the file technically already exists in SharePoint.

Record the intermediate steps carefully enough that Nicolas can tell whether the file is missing, whether it is there but still without metadata, or whether it is fully filed but not yet linked in the CRM.

06 / 15

Why is metadata part of the outcome?

A file can be stored correctly, and still hardly anyone finds it in everyday work. When a customer calls and asks for the report from the last visit, Nicolas searches by case number, not by filename. So define required metadata independently of the filename. Case number, document type and owner should be where your search and the work steps that follow expect them.

Check what type of field each column is and which values are allowed. A choice field does not necessarily accept every wording. If, for example, "Maintenance" is allowed there, "Maintenance report" can fail. And a field for a person is different from plain text. Record the internal field names and values that are actually needed, rather than copying the visible column headings into the field mapping without review.

If the SharePoint schema changes, for example the columns of a library, the workflow has to be checked again. A field that is newly mandatory can stop a workflow that used to run. Whoever is responsible for the library should therefore coordinate such changes with the person responsible for the workflow.

Include one invalid metadata value in acceptance. A workflow that silently drops an invalid category can appear successful and at the same time undermine the search and reporting your company relies on.

Coordinate structural changes with the library owner

A new mandatory column, a different content type or a changed folder rule can make an upload that used to work incomplete in business terms. So agree that changes to the library concerned are also checked against a typical test case. An uploaded file without the metadata needed afterwards does not count as full success.

Suppose the Service Records library now requires a project number, because the company now also handles new-build projects. An older workflow still sends only the filename and content. Instead of entering some default number, the workflow stops with a clear message to Nicolas or uses a mapping rule that was approved in advance. This way, missing details become visible before reports end up in the wrong project.

07 / 15

How should filename conflicts and versions be handled?

Suppose a technician sends report S-2048 a second time because he has corrected a reading. Or the field-service app delivers it twice because of an error. In both cases, the filename already exists. Decide deliberately what happens then: replace the existing content, create a new version, choose another name or stop processing. The right rule depends on whether this is a new version or a repeated delivery of the same file.

Use a business document ID for this and, where needed, a version number. A filename can change and rarely provides sufficient identity on its own. The same content can also legitimately belong to two different cases, for example the same inspection record for two units at one customer. A content comparison alone must not destroy that association.

For the corrected report, a rule might be: same document ID, higher approved version, update the existing target reference. If the same version arrives again, by contrast, it must not create an additional copy. Write down who in the company decides whether a new document or a new version is meant.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

08 / 15

How large can files be in the n8n SharePoint node?

If your technicians also send videos of a unit, for example, file size becomes important, because it affects which way of transferring the file is suitable. According to the n8n documentation checked for this guide, the direct file operation described there has a 250 MB limit and no built-in segmented upload. Verify this limit for the version you use. If you need larger files, they require a suitable, tested path. A larger timeout alone is not enough.

Test ordinary files, the largest file you really need and an interrupted transfer. Check whether incomplete leftovers, such as partial files, remain after a failure and how they are cleaned up. In acceptance, compare the content and size of the file in SharePoint, not just the technical response, the HTTP status.

09 / 15

How do you preserve the intended confidentiality boundary?

A filed document does not yet mean that every authorised user can see it, or that everyone else is excluded. Check the actual destination permissions. An automatically created sharing link, for example one the workflow creates, can have different access rights from normal access to the library.

Do not let the workflow create broader sharing just so the link in the CRM works conveniently. Decide who should see the report, and test the link with a typical employee, such as a technician, and with a test account without permission. If an administrator can open the file, that says little about normal users.

Also think about test copies, temporary copies and logs. A confidential report that is correctly protected in SharePoint can still appear elsewhere, for example in an unprotected intermediate folder. So write down the whole route of the file, including temporary storage.

10 / 15

How do you make list-item matching unambiguous?

Suppose the workflow also creates or updates an entry in a SharePoint list for each job. Then it has to find the right entry without ambiguity. If it finds several matches for a key that should be unique, for example two entries for the same case number, someone has to clarify that. The workflow should not silently change the first match.

Keep the file and the list entry apart. If the list entry already exists but the file is still missing, the case is only partly done. A new attempt must then add the missing part specifically and must not create both again.

11 / 15

Which cases belong in acceptance?

Test these cases for an n8n SharePoint integration:

  • a normal file
  • a repeated document version
  • a newly approved version
  • missing metadata
  • an unauthorised site
  • a filename conflict
  • an interruption after upload

Include the largest intended file.

For each case, write down what should come out: how many files, which destination ID, which metadata, who can access it and what state the linked business case is in, for example in the CRM. This shows an accidental copy just as clearly as a missing CRM link. Also test whether a second person, such as Nicolas's stand-in, can resume an interrupted case using the operating instructions.

Keep the record of the results together with the node and API version used. A later update can change defaults or supported operations. With the saved cases, you can then recheck the integration in a focused way.

12 / 15

Who owns operation and later changes?

Name who is responsible for the library, for the permissions and for the workflow. Besides technical failures, also monitor old unfinished filings and missing metadata. Coordinate changes to columns, folders and access rules before they affect day-to-day operation.

A useful handover contains a list of destinations, the field mapping, the conflict rules, the test cases and the way to restart after a failure. It also describes the limits of the chosen node and any additional API steps. This way, your company keeps control of the filing, even if the original developer is no longer available later.

After the pilot, review the filing with the people who work with it. If Nicolas and the technicians still cannot find reports, look at the metadata and the search routes, rather than just reporting successful uploads. The goal is documents that are accessible and assigned to the right case, not a high upload counter.

13 / 15

For your IT team

The official SharePoint node guide describes file and list operations. Current documentation distinguishes node versions and their API and credential methods. So check the version an existing workflow actually uses before applying settings from a new guide. Research was checked on 26 September 2026.

Microsoft documents selected permissions for limiting access to particular resources. Consent to the permission and assignment to the actual resource are two different things. Read the Graph selected-permissions overview, and check support in your node version.

A restricted connection may need to address the site directly through a known ID or URL, instead of searching for sites across the whole organisation. An empty selection list therefore does not by itself prove that the intended access is impossible. Widen permissions only after you have found the actual problem.

Record the internal field names used and their business meaning in the handover. The column label shown to users is not enough on its own as a long-term description of the interface.

For large files, Microsoft documents direct uploads and upload sessions for segmented transfer. If the API has a capability, it is not automatically implemented in the n8n node you use, or it may be only partly implemented. And if you build your own path with upload sessions, continuation and expiry of the session belong in the design. That is an additional integration task with its own acceptance cases, and more than another setting on the existing upload.

For larger lists, check suitable indexes, filters and pagination using the Microsoft and node documentation. A small test dataset can hide problems that only appear at real volume. Test with representative data and the actual lookup condition.

14 / 15

Take the worksheet

Worksheet

Download the editable CSV table

ComponentDecisionFailure test
DestinationSite, library, folderMissing library
FilenameNaming and collision ruleDifferent same-name files
MetadataClient, type, period, sourceMissing required field
VersionReplace or versionRepeated delivery
AccessAllowed groupUnauthorised test user

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, who looks after which item and what is still open. This worksheet contains no measured client results.

15 / 15

These pages cover the service overview and the related decisions for n8n with SharePoint:

For a workflow review, start with a short description of the task, the software involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

n8n automation

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director