I ran into a small issue that maybe you’ll help me fix. I’m running a webhook that delivers data, but I can’t seem to find the value identifier. The ones I’m talking about are “website”, “name” and “job”.
I tried using this {{ $json[“website”] }} but it doesn’t work, what am I doing wrong?
Thank you Jan for your help, that seems to work along with this option {{ $node[“Webhook”].json[“body”][“name”] }}. However I’m still getting the same error with the details below. Anything I might still be doing wrong?
NodeOperationError: JSON parameter need to be an valid JSON
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1001:31)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:51)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:585:68
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Hi @AmineB, it seems your workflow JSON might have become corrupted when being pasted here on the forum, so I am not 100% sure how exactly your expression looks like.
If you have trouble building your JSON string you might find it easier to define individual fields rather than writing the whole JSON payload at once. Essentially like so:
This would still result in JSON being sent to the destination API:
Thanks @MutedJam, it fixed the problem, but the workflow doesn’t work. It’s supposed to write down the website, name and job values in an excel sheet. I’m still missing something…
That looks like n8n has sent the data and the service you are using has returned an OK message, Is that service you are using meant to be writing to the excel sheet for you? It may be worth checking with that service to see it shows any errors.
If you are saving to a Google Sheet though we do have a node for that which you could use instead which may be easier.