Describe the problem/error/question
I am building a custom declarative node with insert and update of an entity. for the update, every property but the id should be optional. Here is an example property:
{
"displayName": "Description",
"name": "description",
"type": "string",
"displayOptions": {
"show": {
"resource": [
"contact_details"
],
"operation": [
"update"
]
}
},
"required": false,
"routing": {
"send": {
"type": "body",
"property": "description"
}
}
},
it does not require the input in the UI (which is correct), but when running the node without putting a value into the description field, it throws an error that it cannot get the respective parameter.
My guess is that due to the routing setting n8n somehow tries to get a value anyway. it should just ignore it when its empty.
Setting the default value to an empty string makes the request, but it sends an empty string as value.
What is the error message (if any)?
Could not get parameter “description”!
Information on your n8n setup
- **n8n version: latest
- **Database (default: SQLite): sqlite
- **Running n8n via (Docker, npm, n8n cloud, desktop app): cli
- **Operating system: macOS