I'm trying to replicate the effect of this formula from excel "LEFT(B5,FIND("-",B5)-1)" in Power Automate, where instead of cell B5 I'm referencing the Subject line of an email.
My trigger is every time an email is received from specific senders, I want to salvage only the left hand portion of the subject line, after a specific character, but with the left hand side being varying lengths. For example:
| C-Suite _ Monthly Sales report | C-Suite |
| Northwest Ops _ Volume Report | Northwest Ops |
I've tried this, but the expression is invalid
left(triggerBody()?['subject'],find("-",triggerBody()?['subject'])-1)
Any help would be greatly appreciated.