How to automate action with gmail labels

I have a button that performs the action, but I’m having to workaround the fact that the gmail pack doesn’t have a message refresh on mobile. So when I’m on the go, I have no quick way to add emails to my lists. So instead I need to build an automation so that when it detects a “coda” label in my gmail it will automatically press the button for me, so that I can take the manual action in my gmail app and have it add to my lists whenever the messages get refreshed in the future and I don’t have to worry about missing something.

However, after assigning step one result to retrieve the label column I can’t get the conditional ‘if’ (built into the automation menu) to work using this code: thisRow.[Step 1 Result]=Contains(“Coda,”) to work. What am I doing wrong?

thisRow.[Step 1 Result].Find("Coda,") != -1


1 Like