When using the Outlook Power Automate trigger, When a new email arrives, you can apply a filter based on the email subject. Rather than just a single string as your Subject Filter, you may want to apply a filter that will work on multiple different words. The advanced settings for the trigger allow you to set these conditions.

This one is an example of a use case that came up while I was running Power Automate training. An attendee wanted the flow to monitor an inbox, and if someone sent an email about making a hotel reservation, send an approval request. A range of words could be used in the subject to make a reservation- hotel, booking, reservation, just to name a few. The flow needed to run if at least 1 of those words were contained in the email subject.

To apply a condition such as the one described above, click on on the When a new email arrives trigger, and select Settings.

Screenshot of settings on When a new email arrives action in Power Automate

Then enter the following in the Trigger Conditions field (replace the highlighted words with your own)

@or(contains(triggerOutputs()?['body/subject'], 'hotel'),contains(triggerOutputs()?['body/subject'], 'reservation'),contains(triggerOutputs()?['body/subject'], 'booking'))

Add another ,contains(triggerOutputs()?[‘body/subject’], ‘xxx‘) to the expression for every word you want to list.

Screenshot of applying expression in the Trigger Conditions of Power Automate Action

Click Done to save your changes.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s