web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter array using OR ...
Power Automate
Unanswered

Filter array using OR expression

(1) ShareShare
ReportReport
Posted on by 63

Hi there,

 

I am using a filter array like below (the filter condition on the left hand side is an integerr value)

 

sausage_dog_0-1720620645194.png

 

this is the left hand side's expression     -    

item()?['Streets']?[0]?['Id']

 

 

I want to filter the array to where this value is 1 or 3. So I have tried the below in the right hand side but the flow fails

 

or(1,3)

 

 

It givess the fail reason as

The execution of template action 'Filter_array_4' failed: The evaluation of 'query' action 'where' expression '@equals(item()?['Streets']?[0]?['Id'], or(1, 3))' failed: 'The template language function 'or' expects all of its parameters to be booleans. Found invalid parameter types: 'Integer'.'.

 

 

Any ideas what i might be doing wrong here?

 

thank you

SD

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,508 Moderator on at

    @sausage_dog Although it may look like the Filter Array action can only take a single condition—it can take multiple conditions when using the Advanced Editing Mode.

     

    Refer to this section of this YT tutorial linked below for how to add multiple conditions to a Filter Array action.

     

    To learn more about how to use the Filter Array action, please refer to this YT Tutorial: Are you using the Microsoft Power Automate Filter Array Action wrong?

     

    In this video tutorial I’ll show you 3 practical ways to use the Filter Array action and how to use it properly.

    1️⃣ Cross-Referencing Data

    2️⃣ Filtering by Key

    3️⃣ Substring Matching

     

    Did you know that the Condition action has a limit of 10 conditions? Although it might look like the Filter Array action can only accept one condition—this is not true. By using the advanced mode you can enter multiple conditions into a Filter Array action with an expression.

     

    IN THIS VIDEO:

     3 Ways to Use the Filter Array Action

    How to use the Scope Action to Group Actions

    How to Check the Number of Items returned from a Filter Array Action

    How to Cross-Reference Data in Excel with a SharePoint List

     How the Filter Array Action Works

     How to Access the Dynamic Content from a Filter Array Action

     How to Filter Items by a Key

    How to Filter Items by Matching a Substring

    How to Use Multiple Conditions in a Filter Array Action

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

  • sausage_dog Profile Picture
    63 on at

    Thank you - i will check this out...

     

    but in advanced mode... what would my condition be here for 1 OR 3 as an integer?

     

    thank you

     

  • creativeopinion Profile Picture
    10,508 Moderator on at

    @sausage_dog As you'll see in the tutorial use the basic editor to get the expressions you need. Start with replacing the value entered into the second value field with an integer of 1. You'll need use an expression and wrap the number in the int() function. 

     

    creativeopinion_0-1720623365474.png

     

     

    Switch to the Advanced Mode to get the expression. Use a text editor to compose your expression as the advanced editor is really buggy. 

     

    I cover step by step how to compose the expression in the tutorial.

     

  • Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at

    You have to do 2 comparisons:

    @Or(
    	equals(
    		item()?['Streets']?[0]?['Id'],
    		1
    	),
    	equals(
    		item()?['Streets']?[0]?['Id'],
    		3
    	)
    )

     

    You also could do just this:

    Chriddle_0-1720623532028.png

    createArray(1,3) contains item()?['Streets']?[0]?['Id']

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard