Upload File to SharePoint Using Microsoft Graph API
Ready for 3.0What this workflow does
This workflow has 6 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls fastly.picsum.photos over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set config (sensitive data) (Edit Fields (Set)): sets 3 fields: TENANT_ID, CLIENT_ID, CLIENT_SECRET
- Authentication (HTTP Request): calls an HTTP API (POST)
- Get photo (for testing purposes) (HTTP Request): calls fastly.picsum.photos
- Set destination (Edit Fields (Set)): sets 2 fields: TARGET_FOLDER, FILE_NAME
- Upload photo (HTTP Request): calls an HTTP API (PUT)
HTTP calls to: fastly.picsum.photos
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (3)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set
From the author
This n8n workflow template allows you to upload a photo to a SharePoint folder using the Microsoft Graph API. The workflow includes steps for authentication, retrieving a photo for testing purposes, setting the destination folder and file name, and uploading…