Agent for collecting notes with certain flags

Hello,
I like very much the Flags option for visually marking notes. I wanted to create an Agent capable of collecting notes with certain flags, in my case “A1.red”. For this purpose I used AgentQuery $Flags.icontains(“A1.red”), but it didn’t work. Please tell me where I am wrong.

Sergey Glukhov

Over here, the agent works if the query is

$Flags.contains("A1.red")

It maybe a forum auto-correct but do ensure your action code uses paired straight double (or single) quotes. I tested this agent query:

$Flags.icontains("A1.red")

It happily matched Flag values of both A1.red and a1.red.

Thank you! After your post it started working.

1 Like