first commit
This commit is contained in:
205
flows/20.json
Normal file
205
flows/20.json
Normal file
@@ -0,0 +1,205 @@
|
||||
{
|
||||
"id": 20,
|
||||
"name": "hosting",
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
260
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "getAll",
|
||||
"taskListId": "AQMkADAwATNiZmYAZC05MzYzLWQ5YjYtMDACLTAwCgAuAAADIyRvDrjkMkCmTApWtV1lbAEAodXeAPq8WUqqkl0jol24wwAE1-QrCgAAAA=="
|
||||
},
|
||||
"name": "Microsoft To Do",
|
||||
"type": "n8n-nodes-base.microsoftToDo",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
660,
|
||||
460
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftToDoOAuth2Api": {
|
||||
"id": "4",
|
||||
"name": "Microsoft To Do account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"hour": 9,
|
||||
"minute": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Cron",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
460
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"status\"]}}",
|
||||
"operation": "notEqual",
|
||||
"value2": "completed"
|
||||
}
|
||||
],
|
||||
"dateTime": [
|
||||
{
|
||||
"value1": "={{$json[\"dueDateTime\"][\"dateTime\"]}}",
|
||||
"operation": "before",
|
||||
"value2": "={{$today.plus({days: 1}).toString()}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
900,
|
||||
460
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "sendTemplate",
|
||||
"fromEmail": "nia@cynic.club",
|
||||
"toEmail": "Ihor.nahornyy@gmail.com ",
|
||||
"templateId": 3928678,
|
||||
"additionalFields": {
|
||||
"fromName": "DCXV",
|
||||
"templateLanguage": true
|
||||
},
|
||||
"variablesUi": {
|
||||
"variablesValues": [
|
||||
{
|
||||
"name": "server_name",
|
||||
"value": "={{$json[\"title\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "username",
|
||||
"value": "nahornyy"
|
||||
},
|
||||
{
|
||||
"name": "price",
|
||||
"value": "={{$json[\"body\"][\"content\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "days_gone",
|
||||
"value": "={{$json[\"days_to_dead\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Mailjet",
|
||||
"type": "n8n-nodes-base.mailjet",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1360,
|
||||
460
|
||||
],
|
||||
"credentials": {
|
||||
"mailjetEmailApi": {
|
||||
"id": "27",
|
||||
"name": "Mailjet Email account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "deadline_date",
|
||||
"value": "={{$json[\"dueDateTime\"][\"dateTime\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "dead_date",
|
||||
"value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 7}).toString()}}"
|
||||
},
|
||||
{
|
||||
"name": "days_to_dead",
|
||||
"value": "={{$today.diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 7}), 'days').toObject().days.toString().substring(1, 2)}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1140,
|
||||
460
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Cron": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft To Do",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Microsoft To Do": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "IF",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"IF": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Mailjet",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-05-11T17:19:39.626Z",
|
||||
"updatedAt": "2022-05-12T12:21:56.637Z",
|
||||
"settings": {},
|
||||
"staticData": null
|
||||
}
|
||||
Reference in New Issue
Block a user