Files
n8n/flows/11.json

230 lines
7.2 KiB
JSON
Raw Normal View History

2022-05-26 20:57:30 +03:00
{
2022-10-27 21:01:19 +00:00
"createdAt": "2022-04-29T07:24:59.929Z",
2022-12-03 22:01:33 +00:00
"updatedAt": "2022-12-03T07:50:26.901Z",
2022-05-26 20:57:30 +03:00
"id": 11,
"name": "avtomoto25",
2022-12-03 22:01:33 +00:00
"active": false,
2022-05-26 20:57:30 +03:00
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-800,
1100
2022-08-03 21:00:21 +00:00
],
"id": "9dac1004-f978-449c-a92e-0b90f2ee9f06"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
2022-12-03 22:01:33 +00:00
"path": "scool_old",
2022-05-26 20:57:30 +03:00
"responseMode": "responseNode",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
2022-06-22 21:00:33 +00:00
-800,
1280
2022-05-26 20:57:30 +03:00
],
2022-08-03 21:00:21 +00:00
"webhookId": "42d23674-abe0-4cb4-a158-3319140d97f0",
"id": "931df749-d755-4dfa-9ba9-6f1a1e21007d"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
2022-06-23 21:00:30 +00:00
"returnAll": true,
"additionalOptions": {}
2022-05-26 20:57:30 +03:00
},
2022-06-23 21:00:30 +00:00
"name": "Grist",
2022-05-26 20:57:30 +03:00
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-500,
1280
2022-05-26 20:57:30 +03:00
],
2022-12-02 22:00:49 +00:00
"id": "92e3c8bc-d8b3-44b3-8f42-d248e762a14a",
2022-05-26 20:57:30 +03:00
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
2022-12-02 22:00:49 +00:00
}
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
2022-06-23 21:00:30 +00:00
"operation": "aggregateItems",
"fieldsToAggregate": {
"fieldToAggregate": [
2022-05-26 20:57:30 +03:00
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "id"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "date_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "date_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "count"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "time"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_2_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_1_ua"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_1_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "day_2_ru"
2022-05-26 20:57:30 +03:00
},
{
2022-06-23 21:00:30 +00:00
"fieldToAggregate": "address"
2022-07-12 21:00:41 +00:00
},
{
"fieldToAggregate": "time_2"
2022-07-29 21:00:30 +00:00
},
{
"fieldToAggregate": "time_3"
},
{
"fieldToAggregate": "day_3_ua"
},
{
"fieldToAggregate": "day_3_ru"
2022-05-26 20:57:30 +03:00
}
]
2022-06-23 21:00:30 +00:00
},
"options": {}
2022-05-26 20:57:30 +03:00
},
2022-06-23 21:00:30 +00:00
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
2022-05-26 20:57:30 +03:00
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-280,
1280
2022-08-03 21:00:21 +00:00
],
"id": "af000df5-5893-4414-a635-9f408e0397cf"
2022-05-26 20:57:30 +03:00
},
{
"parameters": {
2022-06-23 21:00:30 +00:00
"respondWith": "json",
2022-08-03 21:00:21 +00:00
"responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][0]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][0]}}\"\n},\n \"time\": \"{{$json[\"time\"][0]}}\",\n \"time_2\": \"{{$json[\"time_2\"][0]}}\",\n \"time_3\": \"{{$json[\"time_3\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\",\n\"time_2\": \"{{$json[\"time_2\"][1]}}\",\n\"time_3\": \"{{$json[\"time_3\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"day3\":\n{\n\"ru\": \"{{$json[\"day_3_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_3_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\",\n\"time_2\": \"{{$json[\"time_2\"][2]}}\",\n\"time_3\": \"{{$json[\"time_3\"][2]}}\"\n}\n}\n}",
2022-06-23 21:00:30 +00:00
"options": {
"responseCode": 200
2022-05-26 20:57:30 +03:00
}
},
2022-06-23 21:00:30 +00:00
"name": "Respond to Webhook2",
"type": "n8n-nodes-base.respondToWebhook",
2022-05-26 20:57:30 +03:00
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
-40,
1280
2022-08-03 21:00:21 +00:00
],
"id": "2b49fef3-503f-4a4b-9462-5b28d2692964"
2022-12-02 22:00:49 +00:00
},
{
"parameters": {
"options": {
"headerRow": true,
"rawData": true
}
},
"id": "c8ea10f0-a750-49c2-a273-7c818f7eb905",
"name": "Spreadsheet File",
"type": "n8n-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
-280,
1020
]
},
{
"parameters": {
"filePath": "/files/classroom_rokoss.csv"
},
"id": "c43f215a-6c1a-4308-b11c-46a2a06c02ed",
"name": "Read Binary File",
"type": "n8n-nodes-base.readBinaryFile",
"typeVersion": 1,
"position": [
-500,
1020
]
2022-05-26 20:57:30 +03:00
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"Grist": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "Respond to Webhook2",
"type": "main",
"index": 0
}
]
]
2022-12-02 22:00:49 +00:00
},
"Read Binary File": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
2022-05-26 20:57:30 +03:00
}
},
"settings": {
2022-05-27 07:03:35 +00:00
"saveExecutionProgress": "DEFAULT",
2022-12-02 22:00:49 +00:00
"errorWorkflow": "25",
"saveDataSuccessExecution": "none",
"saveManualExecutions": false,
"callerPolicy": "any"
2022-05-26 20:57:30 +03:00
},
2022-06-09 21:00:39 +00:00
"staticData": null,
2022-12-07 22:01:07 +00:00
"dataLoaded": false,
2022-07-29 21:00:30 +00:00
"pinData": {},
2022-12-07 22:01:07 +00:00
"versionId": "f69808ec-f35e-456e-8be9-d8034dd31b0c",
2022-12-21 22:01:02 +00:00
"triggerCount": 0,
2022-06-09 21:00:39 +00:00
"tags": [
{
"createdAt": "2022-05-10T18:06:30.022Z",
2022-10-27 21:01:19 +00:00
"updatedAt": "2022-05-10T18:06:30.022Z",
"id": "1",
"name": "avtomoto25"
2022-06-09 21:00:39 +00:00
}
2022-12-07 22:01:07 +00:00
]
2022-05-26 20:57:30 +03:00
}