True or False Based on Output

This expression is a logical OR condition used in Power Automate to check if the title of a specific item contains either the word “Teams” or “Viva” Here’s a breakdown of the expression:

Components of the Expression:

1. triggerOutputs():

This function retrieves the data from the trigger event. For instance, if the flow is triggered by a new item in a SharePoint list or an email, this function fetches all the information provided by the trigger.

2. [‘body/Title’]:

This refers to the Title property in the trigger’s output. It assumes the triggered data has a field or attribute named “Title.”

3. contains(…):

This function checks whether a specified string contains a particular value.

• The first argument is the string to be searched (in this case, the value of the “Title” field).

• The second argument is the substring to search for (e.g., ‘Teams’ or ‘Viva’).

4. or(…):

This logical operator evaluates multiple conditions and returns true if at least one of them is true.

What It Does:

The expression:

or(contains(triggerOutputs()?['body/Title'], 'Teams'), contains(triggerOutputs()?['body/Title'], 'Viva'))


1. Checks if the “Title” field contains the word ‘Teams’.

2. Checks if the “Title” field contains the word ‘Viva’.

3. Returns true if either condition is true.

Example Use Case:

Imagine you have a flow that processes SharePoint list items. You only want the flow to take action (e.g., send an email, notify someone) if the “Title” contains “Teams” or “Viva.” This expression ensures that the flow triggers only for those items.