Describe the problem/error/question
I am sending from TacticalRMM (Alert) through a webhook to n8n then Zammad.
Here is the Request Body From TacticalRMM
{
“title”: “{{ $json[“severity”] }} on {{ $json[“hostname”] }}”,
“group”: “Users”,
“customer”: “{{ $json[“client.zammad_email”] }}”,
“article”: {
“subject”: “{{ $json[“severity”] }} on {{ $json[“hostname”] }}”,
“body”: “Client: {{ $json[“client.name”] }}, Site: {{ $json[“site.name”] }}: {{ $json[“message”] }} at {{ $json[“alert_time”] }}”,
“type”: “note”,
“internal”: false
}
}
In the Zammad Ticket Creation Node
Everything seems to be happy except “Customer Email Name or ID”
I have tried several iterations of this
{{ ($json[“client_email”] || ‘[email protected]’).trim() }}
I am getting the
-The Value “” is not supported. I tried to hard code the email, still not happy.
What is the error message (if any)?
{
“errorMessage”: “Your request is invalid or could not be processed by the service”,
“errorDescription”: “No lookup value found for ‘customer’: "null"”,
“errorDetails”: {
“rawErrorMessage”: [
“422 - {"error":"No lookup value found for ‘customer’: \"null\"","error_human":"No lookup value found for ‘customer’: \"null\""}”
],
“httpCode”: “422”
},
“n8nDetails”: {
“nodeName”: “Zammad”,
“nodeType”: “n8n-nodes-base.zammad”,
“nodeVersion”: 1,
“resource”: “ticket”,
“operation”: “create”,
“time”: “10/8/2024, 1:19:04 PM”,
“n8nVersion”: “1.60.1 (Self Hosted)”,
“binaryDataMode”: “default”,
“stackTrace”: [
“NodeApiError: Your request is invalid or could not be processed by the service”,
" at Object.zammadApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Zammad/GenericFunctions.js:58:15)“,
" at processTicksAndRejections (node:internal/process/task_queues:95:5)”,
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Zammad/Zammad.node.js:374:40)“,
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19)”,
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:670:51",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1100:20"
]
}
}
Please share your workflow
I have Webhook > Zammad (ticket creation)
(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
Information on your n8n setup
- n8n version: 1.60.1
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**Docker
- Operating system: Ubuntu 22.04 - Self Hosting