first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Microsoft SharePoint Node', () => {
|
||||
const { baseUrl } = credentials.microsoftSharePointOAuth2Api;
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['download.workflow.json'],
|
||||
assertBinaryData: true,
|
||||
nock: {
|
||||
baseUrl,
|
||||
mocks: [
|
||||
{
|
||||
method: 'get',
|
||||
path: '/sites/site1/drive/items/item1/content',
|
||||
statusCode: 200,
|
||||
responseBody: {},
|
||||
responseHeaders: {
|
||||
'content-type': 'application/json',
|
||||
'content-disposition':
|
||||
"attachment; filename*=UTF-8''weird%20file%20%E2%82%AC%20name.json",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "37ab6212-d506-4b53-b63e-14b6a2a05907",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"site": {
|
||||
"__rl": true,
|
||||
"value": "site1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "site1"
|
||||
},
|
||||
"folder": {
|
||||
"__rl": true,
|
||||
"value": "folder1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "folder1"
|
||||
},
|
||||
"file": {
|
||||
"__rl": true,
|
||||
"value": "item1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "file.json"
|
||||
},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.microsoftSharePoint",
|
||||
"typeVersion": 1,
|
||||
"position": [220, 0],
|
||||
"id": "f9037af8-4f52-4f9f-b8ae-de860f890792",
|
||||
"name": "Microsoft SharePoint",
|
||||
"credentials": {
|
||||
"microsoftSharePointOAuth2Api": {
|
||||
"id": "cXXnMCWyk397M5qJ",
|
||||
"name": "Microsoft SharePoint account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft SharePoint",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Microsoft SharePoint": [
|
||||
{
|
||||
"binary": {
|
||||
"data": {
|
||||
"data": "e30=",
|
||||
"fileExtension": "json",
|
||||
"fileSize": "2 B",
|
||||
"fileType": "json",
|
||||
"mimeType": "application/json",
|
||||
"fileName": "weird file € name.json"
|
||||
}
|
||||
},
|
||||
"json": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Microsoft SharePoint Node', () => {
|
||||
const { baseUrl } = credentials.microsoftSharePointOAuth2Api;
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['update.workflow.json'],
|
||||
nock: {
|
||||
baseUrl,
|
||||
mocks: [
|
||||
{
|
||||
method: 'patch',
|
||||
path: '/sites/site1/drive/items/item1',
|
||||
statusCode: 200,
|
||||
responseBody: {
|
||||
'@odata.context':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_api/v2.0/$metadata#items/$entity',
|
||||
'@content.downloadUrl':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_layouts/15/download.aspx?UniqueId=d86f89ab-378e-43bc-8d46-18d2f52bd603',
|
||||
createdBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
eTag: '"{D86F89AB-378E-43BC-8D46-18D2F52BD603},3"',
|
||||
id: '01SPEVVYFLRFX5RDRXXRBY2RQY2L2SXVQD',
|
||||
lastModifiedBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
lastModifiedDateTime: '2025-03-24T19:48:25Z',
|
||||
name: 'file2.json',
|
||||
parentReference: {
|
||||
driveType: 'documentLibrary',
|
||||
driveId: 'b!HXyh83lynUOhdUenWLZcmP1mvjoj7J9Gq8YzLjqVv3W_vPrVy_93T7lzoXbjRjzK',
|
||||
id: '01SPEVVYBKV2ZKHGJASRA2HC7MOGBMUMAA',
|
||||
name: 'folder1',
|
||||
path: '/drive/root:/folder1',
|
||||
siteId: 'f3a17c1d-7279-439d-a175-47a758b65c98',
|
||||
},
|
||||
webUrl:
|
||||
'https://mydomain.sharepoint.com/sites/site1/Shared%20Documents/folder1/file2.json',
|
||||
cTag: '"c:{D86F89AB-378E-43BC-8D46-18D2F52BD603},2"',
|
||||
file: {
|
||||
hashes: {
|
||||
quickXorHash: 'jY7BcIP9Th3EZ4PMCLrv4DnQTY4=',
|
||||
},
|
||||
irmEffectivelyEnabled: false,
|
||||
irmEnabled: false,
|
||||
mimeType: 'application/json',
|
||||
},
|
||||
fileSystemInfo: {
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
lastModifiedDateTime: '2025-03-24T19:48:25Z',
|
||||
},
|
||||
shared: {
|
||||
effectiveRoles: ['write'],
|
||||
scope: 'users',
|
||||
},
|
||||
size: 37,
|
||||
},
|
||||
},
|
||||
{
|
||||
method: 'put',
|
||||
path: '/sites/site1/drive/items/item1/content',
|
||||
statusCode: 200,
|
||||
responseBody: {
|
||||
'@odata.context':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_api/v2.0/$metadata#items/$entity',
|
||||
'@content.downloadUrl':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_layouts/15/download.aspx?UniqueId=d86f89ab-378e-43bc-8d46-18d2f52bd603',
|
||||
createdBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
eTag: '"{D86F89AB-378E-43BC-8D46-18D2F52BD603},3"',
|
||||
id: '01SPEVVYFLRFX5RDRXXRBY2RQY2L2SXVQD',
|
||||
lastModifiedBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
lastModifiedDateTime: '2025-03-24T19:48:35Z',
|
||||
name: 'file2.json',
|
||||
parentReference: {
|
||||
driveType: 'documentLibrary',
|
||||
driveId: 'b!HXyh83lynUOhdUenWLZcmP1mvjoj7J9Gq8YzLjqVv3W_vPrVy_93T7lzoXbjRjzK',
|
||||
id: '01SPEVVYBKV2ZKHGJASRA2HC7MOGBMUMAA',
|
||||
name: 'folder1',
|
||||
path: '/drive/root:/folder1',
|
||||
siteId: 'f3a17c1d-7279-439d-a175-47a758b65c98',
|
||||
},
|
||||
webUrl:
|
||||
'https://mydomain.sharepoint.com/sites/site1/Shared%20Documents/folder1/file2.json',
|
||||
cTag: '"c:{D86F89AB-378E-43BC-8D46-18D2F52BD603},2"',
|
||||
file: {
|
||||
hashes: {
|
||||
quickXorHash: 'jY7BcIP9Th3EZ4PMCLrv4DnQTY4=',
|
||||
},
|
||||
irmEffectivelyEnabled: false,
|
||||
irmEnabled: false,
|
||||
mimeType: 'application/json',
|
||||
},
|
||||
fileSystemInfo: {
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
lastModifiedDateTime: '2025-03-24T19:48:25Z',
|
||||
},
|
||||
shared: {
|
||||
effectiveRoles: ['write'],
|
||||
scope: 'users',
|
||||
},
|
||||
size: 37,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,175 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "37ab6212-d506-4b53-b63e-14b6a2a05907",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"site": {
|
||||
"__rl": true,
|
||||
"value": "site1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "site1"
|
||||
},
|
||||
"folder": {
|
||||
"__rl": true,
|
||||
"value": "folder1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "folder1"
|
||||
},
|
||||
"file": {
|
||||
"__rl": true,
|
||||
"value": "item1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "file1.json"
|
||||
},
|
||||
"fileName": "file2.json",
|
||||
"changeFileContent": true,
|
||||
"fileContents": "data",
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.microsoftSharePoint",
|
||||
"typeVersion": 1,
|
||||
"position": [660, 0],
|
||||
"id": "f9037af8-4f52-4f9f-b8ae-de860f890792",
|
||||
"name": "Microsoft SharePoint",
|
||||
"credentials": {
|
||||
"microsoftSharePointOAuth2Api": {
|
||||
"id": "cXXnMCWyk397M5qJ",
|
||||
"name": "Microsoft SharePoint account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "jsonToBinary",
|
||||
"convertAllData": false,
|
||||
"options": {
|
||||
"useRawData": true
|
||||
}
|
||||
},
|
||||
"name": "Move Binary Data",
|
||||
"type": "n8n-nodes-base.moveBinaryData",
|
||||
"typeVersion": 1,
|
||||
"position": [440, 0],
|
||||
"id": "9cba2be3-50e0-4ae2-b7a6-2f0caefb50ef"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "raw",
|
||||
"jsonOutput": "{\n \"data\": {\n \"my_field_1\": \"value\",\n \"my_field_2\": 1\n }\n}\n",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"position": [220, 0],
|
||||
"id": "fdafc0d5-58dd-4f9e-a76b-0a3cb0e9a794",
|
||||
"name": "Edit Fields"
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Fields",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Move Binary Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft SharePoint",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Fields": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Move Binary Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Microsoft SharePoint": [
|
||||
{
|
||||
"json": {
|
||||
"@content.downloadUrl": "https://mydomain.sharepoint.com/sites/site1/_layouts/15/download.aspx?UniqueId=d86f89ab-378e-43bc-8d46-18d2f52bd603",
|
||||
"@odata.context": "https://mydomain.sharepoint.com/sites/site1/_api/v2.0/$metadata#items/$entity",
|
||||
"cTag": "\"c:{D86F89AB-378E-43BC-8D46-18D2F52BD603},2\"",
|
||||
"createdBy": {
|
||||
"application": {
|
||||
"displayName": "sharepoint-n8n-test",
|
||||
"id": "b9c26603-3c9b-4050-b848-27dfab0a52fa"
|
||||
},
|
||||
"user": {
|
||||
"displayName": "John Doe",
|
||||
"email": "john@doe.onmicrosoft.com",
|
||||
"id": "5f7afebb-121d-4664-882b-a09fe6584ce0"
|
||||
}
|
||||
},
|
||||
"createdDateTime": "2025-03-13T19:23:53Z",
|
||||
"eTag": "\"{D86F89AB-378E-43BC-8D46-18D2F52BD603},3\"",
|
||||
"file": {
|
||||
"hashes": {
|
||||
"quickXorHash": "jY7BcIP9Th3EZ4PMCLrv4DnQTY4="
|
||||
},
|
||||
"irmEffectivelyEnabled": false,
|
||||
"irmEnabled": false,
|
||||
"mimeType": "application/json"
|
||||
},
|
||||
"fileSystemInfo": {
|
||||
"createdDateTime": "2025-03-13T19:23:53Z",
|
||||
"lastModifiedDateTime": "2025-03-24T19:48:25Z"
|
||||
},
|
||||
"id": "01SPEVVYFLRFX5RDRXXRBY2RQY2L2SXVQD",
|
||||
"lastModifiedBy": {
|
||||
"application": {
|
||||
"displayName": "sharepoint-n8n-test",
|
||||
"id": "b9c26603-3c9b-4050-b848-27dfab0a52fa"
|
||||
},
|
||||
"user": {
|
||||
"displayName": "John Doe",
|
||||
"email": "john@doe.onmicrosoft.com",
|
||||
"id": "5f7afebb-121d-4664-882b-a09fe6584ce0"
|
||||
}
|
||||
},
|
||||
"lastModifiedDateTime": "2025-03-24T19:48:35Z",
|
||||
"name": "file2.json",
|
||||
"parentReference": {
|
||||
"driveId": "b!HXyh83lynUOhdUenWLZcmP1mvjoj7J9Gq8YzLjqVv3W_vPrVy_93T7lzoXbjRjzK",
|
||||
"driveType": "documentLibrary",
|
||||
"id": "01SPEVVYBKV2ZKHGJASRA2HC7MOGBMUMAA",
|
||||
"name": "folder1",
|
||||
"path": "/drive/root:/folder1",
|
||||
"siteId": "f3a17c1d-7279-439d-a175-47a758b65c98"
|
||||
},
|
||||
"shared": {
|
||||
"effectiveRoles": ["write"],
|
||||
"scope": "users"
|
||||
},
|
||||
"size": 37,
|
||||
"webUrl": "https://mydomain.sharepoint.com/sites/site1/Shared%20Documents/folder1/file2.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
|
||||
import { credentials } from '../credentials';
|
||||
|
||||
describe('Microsoft SharePoint Node', () => {
|
||||
const { baseUrl } = credentials.microsoftSharePointOAuth2Api;
|
||||
new NodeTestHarness().setupTests({
|
||||
credentials,
|
||||
workflowFiles: ['upload.workflow.json'],
|
||||
nock: {
|
||||
baseUrl,
|
||||
mocks: [
|
||||
{
|
||||
method: 'put',
|
||||
path: '/sites/site1/drive/items/folder1:/file1.json:/content',
|
||||
statusCode: 201,
|
||||
responseBody: {
|
||||
'@odata.context':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_api/v2.0/$metadata#items/$entity',
|
||||
'@content.downloadUrl':
|
||||
'https://mydomain.sharepoint.com/sites/site1/_layouts/15/download.aspx?UniqueId=d86f89ab-378e-43bc-8d46-18d2f52bd603',
|
||||
createdBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
eTag: '"{D86F89AB-378E-43BC-8D46-18D2F52BD603},3"',
|
||||
id: '01SPEVVYFLRFX5RDRXXRBY2RQY2L2SXVQD',
|
||||
lastModifiedBy: {
|
||||
application: {
|
||||
id: 'b9c26603-3c9b-4050-b848-27dfab0a52fa',
|
||||
displayName: 'sharepoint-n8n-test',
|
||||
},
|
||||
user: {
|
||||
email: 'john@doe.onmicrosoft.com',
|
||||
id: '5f7afebb-121d-4664-882b-a09fe6584ce0',
|
||||
displayName: 'John Doe',
|
||||
},
|
||||
},
|
||||
lastModifiedDateTime: '2025-03-24T19:48:25Z',
|
||||
name: 'file2.json',
|
||||
parentReference: {
|
||||
driveType: 'documentLibrary',
|
||||
driveId: 'b!HXyh83lynUOhdUenWLZcmP1mvjoj7J9Gq8YzLjqVv3W_vPrVy_93T7lzoXbjRjzK',
|
||||
id: '01SPEVVYBKV2ZKHGJASRA2HC7MOGBMUMAA',
|
||||
name: 'folder1',
|
||||
path: '/drive/root:/folder1',
|
||||
siteId: 'f3a17c1d-7279-439d-a175-47a758b65c98',
|
||||
},
|
||||
webUrl:
|
||||
'https://mydomain.sharepoint.com/sites/site1/Shared%20Documents/folder1/file1.json',
|
||||
cTag: '"c:{D86F89AB-378E-43BC-8D46-18D2F52BD603},2"',
|
||||
file: {
|
||||
hashes: {
|
||||
quickXorHash: 'jY7BcIP9Th3EZ4PMCLrv4DnQTY4=',
|
||||
},
|
||||
irmEffectivelyEnabled: false,
|
||||
irmEnabled: false,
|
||||
mimeType: 'application/json',
|
||||
},
|
||||
fileSystemInfo: {
|
||||
createdDateTime: '2025-03-13T19:23:53Z',
|
||||
lastModifiedDateTime: '2025-03-24T19:48:25Z',
|
||||
},
|
||||
shared: {
|
||||
effectiveRoles: ['write'],
|
||||
scope: 'users',
|
||||
},
|
||||
size: 37,
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [0, 0],
|
||||
"id": "37ab6212-d506-4b53-b63e-14b6a2a05907",
|
||||
"name": "When clicking ‘Test workflow’"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "upload",
|
||||
"site": {
|
||||
"__rl": true,
|
||||
"value": "site1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "site1"
|
||||
},
|
||||
"folder": {
|
||||
"__rl": true,
|
||||
"value": "folder1",
|
||||
"mode": "list",
|
||||
"cachedResultName": "folder1"
|
||||
},
|
||||
"fileName": "file1.json",
|
||||
"fileContents": "data",
|
||||
"requestOptions": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.microsoftSharePoint",
|
||||
"typeVersion": 1,
|
||||
"position": [660, 0],
|
||||
"id": "f9037af8-4f52-4f9f-b8ae-de860f890792",
|
||||
"name": "Microsoft SharePoint",
|
||||
"credentials": {
|
||||
"microsoftSharePointOAuth2Api": {
|
||||
"id": "cXXnMCWyk397M5qJ",
|
||||
"name": "Microsoft SharePoint account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "jsonToBinary",
|
||||
"convertAllData": false,
|
||||
"options": {
|
||||
"useRawData": true
|
||||
}
|
||||
},
|
||||
"name": "Move Binary Data",
|
||||
"type": "n8n-nodes-base.moveBinaryData",
|
||||
"typeVersion": 1,
|
||||
"position": [440, 0],
|
||||
"id": "9cba2be3-50e0-4ae2-b7a6-2f0caefb50ef"
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "raw",
|
||||
"jsonOutput": "{\n \"data\": {\n \"my_field_1\": \"value\",\n \"my_field_2\": 1\n }\n}\n",
|
||||
"options": {}
|
||||
},
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 3.4,
|
||||
"position": [220, 0],
|
||||
"id": "fdafc0d5-58dd-4f9e-a76b-0a3cb0e9a794",
|
||||
"name": "Edit Fields"
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"When clicking ‘Test workflow’": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Fields",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Move Binary Data": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft SharePoint",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Fields": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Move Binary Data",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"pinData": {
|
||||
"Microsoft SharePoint": [
|
||||
{
|
||||
"json": {
|
||||
"@content.downloadUrl": "https://mydomain.sharepoint.com/sites/site1/_layouts/15/download.aspx?UniqueId=d86f89ab-378e-43bc-8d46-18d2f52bd603",
|
||||
"@odata.context": "https://mydomain.sharepoint.com/sites/site1/_api/v2.0/$metadata#items/$entity",
|
||||
"cTag": "\"c:{D86F89AB-378E-43BC-8D46-18D2F52BD603},2\"",
|
||||
"createdBy": {
|
||||
"application": {
|
||||
"displayName": "sharepoint-n8n-test",
|
||||
"id": "b9c26603-3c9b-4050-b848-27dfab0a52fa"
|
||||
},
|
||||
"user": {
|
||||
"displayName": "John Doe",
|
||||
"email": "john@doe.onmicrosoft.com",
|
||||
"id": "5f7afebb-121d-4664-882b-a09fe6584ce0"
|
||||
}
|
||||
},
|
||||
"createdDateTime": "2025-03-13T19:23:53Z",
|
||||
"eTag": "\"{D86F89AB-378E-43BC-8D46-18D2F52BD603},3\"",
|
||||
"file": {
|
||||
"hashes": {
|
||||
"quickXorHash": "jY7BcIP9Th3EZ4PMCLrv4DnQTY4="
|
||||
},
|
||||
"irmEffectivelyEnabled": false,
|
||||
"irmEnabled": false,
|
||||
"mimeType": "application/json"
|
||||
},
|
||||
"fileSystemInfo": {
|
||||
"createdDateTime": "2025-03-13T19:23:53Z",
|
||||
"lastModifiedDateTime": "2025-03-24T19:48:25Z"
|
||||
},
|
||||
"id": "01SPEVVYFLRFX5RDRXXRBY2RQY2L2SXVQD",
|
||||
"lastModifiedBy": {
|
||||
"application": {
|
||||
"displayName": "sharepoint-n8n-test",
|
||||
"id": "b9c26603-3c9b-4050-b848-27dfab0a52fa"
|
||||
},
|
||||
"user": {
|
||||
"displayName": "John Doe",
|
||||
"email": "john@doe.onmicrosoft.com",
|
||||
"id": "5f7afebb-121d-4664-882b-a09fe6584ce0"
|
||||
}
|
||||
},
|
||||
"lastModifiedDateTime": "2025-03-24T19:48:25Z",
|
||||
"name": "file2.json",
|
||||
"parentReference": {
|
||||
"driveId": "b!HXyh83lynUOhdUenWLZcmP1mvjoj7J9Gq8YzLjqVv3W_vPrVy_93T7lzoXbjRjzK",
|
||||
"driveType": "documentLibrary",
|
||||
"id": "01SPEVVYBKV2ZKHGJASRA2HC7MOGBMUMAA",
|
||||
"name": "folder1",
|
||||
"path": "/drive/root:/folder1",
|
||||
"siteId": "f3a17c1d-7279-439d-a175-47a758b65c98"
|
||||
},
|
||||
"shared": {
|
||||
"effectiveRoles": ["write"],
|
||||
"scope": "users"
|
||||
},
|
||||
"size": 37,
|
||||
"webUrl": "https://mydomain.sharepoint.com/sites/site1/Shared%20Documents/folder1/file1.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user