0% found this document useful (0 votes)
3 views2 pages

n8n Scrap

The document outlines a workflow for transferring files from Airtable to Google Drive using an automation tool. It includes steps to retrieve records from Airtable, download attachments, upload them to Google Drive, make the files public, and generate a public URL for access. Each step is connected in a sequence to ensure a smooth data transfer process.

Uploaded by

Fjori Kaçaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

n8n Scrap

The document outlines a workflow for transferring files from Airtable to Google Drive using an automation tool. It includes steps to retrieve records from Airtable, download attachments, upload them to Google Drive, make the files public, and generate a public URL for access. Each step is connected in a sequence to ensure a smooth data transfer process.

Uploaded by

Fjori Kaçaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

{

"name": "Airtable to Google Drive Upload",


"nodes": [
{
"parameters": {
"authentication": "apiKey",
"baseId": "appXXXXXXXXXXXXXX",
"tableId": "tblXXXXXXXXXXXXXX",
"returnAll": true
},
"id": "Airtable_Trigger",
"name": "Get Records from Airtable",
"type": "n8n-nodes-base.airtable",
"typeVersion": 1,
"position": [250, 300],
"credentials": {
"airtableApi": {
"id": "1",
"name": "Airtable Account"
}
}
},
{
"parameters": {
"url": "={{$json[\"fields\"][\"attachments\"][0][\"url\"]}}",
"responseFormat": "file",
"options": {}
},
"id": "HTTP_Download",
"name": "Download File from Airtable",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [500, 300]
},
{
"parameters": {
"binaryData": true,
"binaryPropertyName": "data",
"parents": [],
"fileName": "={{$json[\"fields\"][\"attachments\"][0][\"filename\"]}}",
"options": {}
},
"id": "Drive_Upload",
"name": "Upload to Google Drive",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 1,
"position": [750, 300],
"credentials": {
"googleApi": {
"id": "2",
"name": "Google Drive Account"
}
}
},
{
"parameters": {
"fileId": "={{$json[\"id\"]}}",
"role": "reader",
"type": "anyone"
},
"id": "Drive_Share",
"name": "Make File Public",
"type": "n8n-nodes-base.googleDrive",
"typeVersion": 1,
"position": [1000, 300],
"credentials": {
"googleApi": {
"id": "2",
"name": "Google Drive Account"
}
},
"parameters": {
"operation": "share"
}
},
{
"parameters": {
"values": {
"public_url": "https://drive.google.com/uc?
export=download&id={{$json[\"id\"]}}"
}
},
"id": "Set_Link",
"name": "Generate Public URL",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
"position": [1250, 300]
}
],
"connections": {
"Get Records from Airtable": {
"main": [[{"node": "Download File from Airtable", "type": "main", "index":
0}]]
},
"Download File from Airtable": {
"main": [[{"node": "Upload to Google Drive", "type": "main", "index": 0}]]
},
"Upload to Google Drive": {
"main": [[{"node": "Make File Public", "type": "main", "index": 0}]]
},
"Make File Public": {
"main": [[{"node": "Generate Public URL", "type": "main", "index": 0}]]
}
}
}

You might also like