Expressions in Gmail (get many, ...) doesn't work

Hello,

I try to use a variable in the Gmail get mail node, but it doesn’t accept the variable. Always get this kind of message: the value ‘Unread emails only’ is not accepted.
When I put exactly the same as ‘fixed’, it works.
Simplified workflow (only consider the lowest part - I figured out how to get labels):

What do I have to do to get these variables ‘Unread emails only’, ‘Read emails only’, … recognized?
I know this can be solved by a switch node, but I want to use the variables.

Thx,
Peter

Information on your n8n setup

  • n8n version: latest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via : cloud
  • Operating system:

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 @peter_wett

You need to change the two status names. Here’s a little trick when you need to get a parameter’s default value:

(do a reset first)
CleanShot 2024-12-24 at 15.03.53

Basically the expression value is what you will need to pass in to make the desired selection :wink:

that seems to work, but … it is just a temporarily solution.
I works for a few tries and then it is messed up again :sleepy:

Hey @peter_wett

Why would it be “messed up” again?

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