1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147 | {
"name": "Export to Dropbox",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "WF²-nodes-base.start",
"typeVersion": 1,
"position": [
180,
420
]
},
{
"parameters": {
"document_type": "INVOICE",
"status": "validated_pending_export"
},
"name": "Status Trigger",
"type": "WF²-nodes-base.statusTrigger",
"typeVersion": 1,
"position": [
200,
200
],
"webhookId": "b4e6be8c-5be1-4c75-8906-aa8790c1dd51",
"credentials": {
"Doc2AppApi": {
"id": "1",
"name": "Doc2App account"
}
}
},
{
"parameters": {
"operation": "toFile",
"fileFormat": "xlsx",
"options": {
"fileName": "excel.xlsx"
}
},
"name": "Spreadsheet File",
"type": "WF²-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
900,
200
]
},
{
"parameters": {
"functionCode": "// Code here will run only once, no matter how many input items there are.\n// More info and help: https://docs.polydocs.io/workflow/integrations/core-nodes/workflow-nodes-base.function\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Loop over inputs and add a new field called 'myNewField' to the JSON of each one\n//for (item of items) {\n// item.json.myNewField = 1;\n//}\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn items[0].json.fields_compact;\n\n"
},
"name": "Function",
"type": "WF²-nodes-base.function",
"typeVersion": 1,
"position": [
640,
200
]
},
{
"parameters": {
"options": {}
},
"name": "Spreadsheet File1",
"type": "WF²-nodes-base.spreadsheetFile",
"typeVersion": 1,
"position": [
1320,
200
]
},
{
"parameters": {
"path": "/excel.xlsx",
"binaryData": true
},
"name": "Dropbox",
"type": "WF²-nodes-base.dropbox",
"typeVersion": 1,
"position": [
1320,
0
],
"credentials": {
"dropboxApi": {
"id": "4",
"name": "Dropbox account"
}
}
}
],
"connections": {
"Status Trigger": {
"main": [
[
{
"node": "Function",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[]
]
},
"Spreadsheet File": {
"main": [
[
{
"node": "Spreadsheet File1",
"type": "main",
"index": 0
},
{
"node": "Dropbox",
"type": "main",
"index": 0
}
]
]
},
"Function": {
"main": [
[
{
"node": "Spreadsheet File",
"type": "main",
"index": 0
}
]
]
},
"Spreadsheet File1": {
"main": [
[]
]
}
},
"active": false,
"settings": {},
"id": 2
}
|