-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdebug-workflow.json
More file actions
60 lines (60 loc) · 1.53 KB
/
Copy pathdebug-workflow.json
File metadata and controls
60 lines (60 loc) · 1.53 KB
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
{
"nodes": [
{
"parameters": {
"formTitle": "Debug",
"formDescription": "Formulaire pour s'entraîner au debug",
"formFields": {
"values": [
{
"fieldLabel": "Quel est votre nom ?",
"placeholder": "Patrick"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.2,
"position": [
40,
-20
],
"id": "027f371d-2d29-4ec9-ac19-49f4d00cec8d",
"name": "On form submission",
"webhookId": "5f5f02b9-0e0d-476a-a3cc-718c4d502025"
},
{
"parameters": {
"language": "python",
"pythonCode": "# Loop over input items and add a new field called 'myNewField' to the JSON of each one\nitem = _input.first()\nfull_name = item.json.get(\"Quel est votre nom ?\")\nitem.json.first_name = full_name.split()[0]\nitem.json.last_name = full_name.split()[1]\n\nreturn _input.first()"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
360,
-20
],
"id": "bed03d39-599d-421c-997f-08efa8360a71",
"name": "Code"
}
],
"connections": {
"On form submission": {
"main": [
[
{
"node": "Code",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "9f0fe684d5b399874e5bb42228316888457c677ebdc340a6ef3a5239049e930e"
}
}