Set Dropdown Field using an Expression

Problem/Error/Question

I’m trying to set a dropdown field to a specific value using an expression. Let me illustrate this using a “Microsot To Do” app/node, by adding the “Importance” field. I would like to set this field using an Expression (with input from a previous node).

The “Importance” field basically has 3 options: “Low”, “Normal” or “High”. These translate to value 0, 1 or 2. If I use the value “{{ $json.importance }}” (which, by the way is a Number), I get an exclamation mark/error.

Error Message

Issues:

  • The value “2” is not supported!

Workflow

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Pixel

Actually, this is a feature request and you can vote for it here:

(I will give it a vote too actually :stuck_out_tongue: )

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.