I have a flow when an email message is flagged sends an email using "FROM" in the subject. Something like "FROM"'s message was flagged". The "FROM" always returns a e-mail address "name.surname@domain.com" I though I could easily shorten it by using Substring("FROM", 1, indexOf("FROM","@")) but some how it is not that simple and I have no idea why it is returning an Expression is invalid.
When I insert the "FROM"on the expression it gets automatically transformed in "triggerOutputs()?['body/from']"
substring(triggerOutputs()?['body/from'],1,indexOf(triggerOutputs()?['body/from'],"."))
What am i doing wrong?
N
Solved! Go to Solution.
You will need to use single quotes, you have double quotes around your @.
It would be best if you could post a screenshot of your flow...
You will need to use single quotes, you have double quotes around your @.
Oops. Beginner's mistake. Thanks!
User | Count |
---|---|
92 | |
45 | |
21 | |
18 | |
16 |
User | Count |
---|---|
136 | |
49 | |
42 | |
36 | |
28 |