feat: add folder support for workflows (fixes #70)
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
"name": "Google Drive Trigger",
|
||||
"type": "n8n-nodes-base.googleDriveTrigger",
|
||||
"position": [
|
||||
250,
|
||||
150
|
||||
],
|
||||
"parameters": {
|
||||
"event": "fileCreated",
|
||||
"options": {},
|
||||
"triggerOn": "specificFolder",
|
||||
"folderToWatch": "1HwOAKkkgveLji8vVpW9Xrg1EsBskwMNb"
|
||||
},
|
||||
"credentials": {
|
||||
"googleDriveOAuth2Api": {
|
||||
"id": "28",
|
||||
"name": "Google Drive account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
},
|
||||
{
|
||||
"name": "Send Email",
|
||||
"type": "n8n-nodes-base.emailSend",
|
||||
"position": [
|
||||
450,
|
||||
150
|
||||
],
|
||||
"parameters": {
|
||||
"text": "=A file in your Google Drive file folder has been created: {{$json[\"name\"]}}",
|
||||
"options": {},
|
||||
"subject": "File Update",
|
||||
"toEmail": "mutedjam@n8n.io",
|
||||
"fromEmail": "mutedjam@n8n.io"
|
||||
},
|
||||
"credentials": {
|
||||
"smtp": {
|
||||
"id": "14",
|
||||
"name": "SMTP account"
|
||||
}
|
||||
},
|
||||
"typeVersion": 1
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Google Drive Trigger": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Send Email",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user