For the trigger when a new email arrives,
I am trying to do a complex filter. Not sure if it is possible.
Below is what I have, and I am receiving an error in syntax:
The power flow's logic app flow template was invalid. The template language expression 'or( startsWith(triggerOutputs()?['body/subject'], 'WFM: OOF Change for'), @And( startsWith(triggerOutputs()?['body/subject'], 'WFM: Schedule change request for'), contains(triggerOutputs()?['body/subject'], 'approved') ) )' is not valid: the string character '@' at position '74' is not expected.
For the trigger, I am going into Settings and doing Trigger conditions.
I want to look for 2 things, so I need an or. but the second pieces involves an "and".
I want to check for messages that start with WFM: OOF Change for
or
for messages that start with WFM: Schedule change request for AND contains approved.
@OR(
startsWith(triggerOutputs()?['body/subject'], 'WFM: OOF Change for'),
@and(
startsWith(triggerOutputs()?['body/subject'], 'WFM: Schedule change request for'),
contains(triggerOutputs()?['body/subject'], 'approved')
)
)