Describe the problem/error/question
With the Discord node, the text that is described in Course 1 didn’t work for me:
I needed to rewrite it before the values were parsed correctly:
This week we have {{ $json.totalBooked }} booked orders with a total value of {{ $json.bookedSum }}. My Unique ID: {{ $(‘HTTP Request’).params[“headerParameters”][“parameters”][0][“value”] }}
What is the error message (if any)?
none, the node showed Sucess True as a result no matter what.
Please share your workflow
{
“meta”: {
“instanceId”: “a18bf26e966bc5c9e62af2047fa0d0a2e509365c7026b205f585c41ef8dd5ec6”
},
“nodes”: [
{
“parameters”: {
“webhookUri”: “=https://discord.com/api/webhooks/1175601599922569326/-iSK55b643h9MSPc8gB1UNq_1czypSOZouz-b6ZH0ztwJkOoQJwfxdpbreBFwPu97V5f”,
“text”: “=This week we have {{ $json.totalBooked }} booked orders with a total value of {{ $json.bookedSum }}. My Unique ID: {{ $(‘HTTP Request’).params["headerParameters"]["parameters"][0]["value"] }}”,
“options”: {}
},
“id”: “c7f15f73-fb12-432e-a77a-374b67c4d248”,
“name”: “Discord”,
“type”: “n8n-nodes-base.discord”,
“typeVersion”: 1,
“position”: [
1400,
420
],
“notesInFlow”: true,
“notes”: “This week we have {{ $json.totalBooked }} booked orders with a total value of {{ $json.bookedSum }}. My Unique ID: {{ $(‘HTTP Request’).params["headerParameters"]["parameters"][0]["value"] }}”
}
],
“connections”: {}
}
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
[this showed up as a result in my Discord]
This week we have {{$json[“totalBooked”]}} booked orders with a total value of {{$json[“bookedSum”]}}. My Unique ID: {{ $(‘HTTP Request’).params[“headerParameters”][“parameters”][0][“value”] }}
Expected: This week we have 16 booked orders with a total value of 2251.14. My Unique ID: e4d19d59382159d8c17bf089fb7e910f
The instructions used from Course 1 caused the first output. I corrected it by altering the syntax of the JSON variable calls. I posit that Course 1 needs some updating.
- [8:59 PM]
Information on your n8n setup
- n8n version:1.16.0
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):?
- Running n8n via Docker
- Operating system: default with Docker: linux variant