I am building a flow that alerts me if an email arrives that has certain words in the subject or is urgent.
The flow fires when an email arrives, and then checks if any of those conditions are true.
It worked somewhat okay, but in testing I discovered that it is case-sensitive, so I need to convert it to lowercase before I check the strings.
And this is where I need help. I thought it would simply be toLower(triggerOutputs()?['body/subject']) but when I tried that I meet a failure.
The toLower() function I used was written by me first, but when I tried the "suggest function by examples" the system also suggested the same formula. The error says it found a null input but none of my inputs are null in this case (of course it does need to handle an empty subject or importance anyway).
Setup:
Failure: Input is null. The email subject and importance were not null.
What am I missing?
PS another user with basically the question: Building an autoreply flow