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 / Multiple conditions in...
Power Automate
Unanswered

Multiple conditions in Filter Array

(0) ShareShare
ReportReport
Posted on by

Hello All, 

I would like to add two conditions to the Filter Array to filter my columns, but I get this error and I don't know where I made the mistake.

 

Palucci12_0-1700146568578.png

 

@And(equals(item()?['Employment_x0020_status'], 'Active'), equals(item()?['Employment_x0020_status', 'long absences')) 
Categories:
I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Well, what jumps out at me is that logic doesn't make sense. You're saying Employment Status must equal Active and long absences? Do you maybe mean or?

  • Palucci12 Profile Picture
    on at

    I would like to extract all elements into lists with Active or long absence in the column . I tried with Or but same results 

     

     

    @Anonymous(equals(item()?['Employment_x0020_status'], 'Active'),equals(item()?['Employment_x0020_status'], 'long absences'))

     

     

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Can you perform the filter directly in the Get Items?

     

    wskinnermctc_0-1700161104239.png

     

  • Palucci12 Profile Picture
    on at

    And if these are Choice columns? is it not a problem ? 

  • Palucci12 Profile Picture
    on at

    I got error :

    Palucci12_0-1700162016784.png

     

  • Palucci12 Profile Picture
    on at

     

    Thank you for your answers, I did it this way and the result is good, can you help me and is it even possible? I will save this filter array in get items as in filter query as one code so as not to do so many actions

    Palucci12_0-1700163312749.png

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Are those more filters you want to put on the Get Items?

     

    It is the same thing, just keep adding the filter statements into the Get Items Filter Query field.

     

    (Employment_x0020_status eq 'Active') or (Employment_x0020_status eq 'long absences) and (HC eq 1) and (Employeecontracttype eq 'tk GSG')

     

    You might have to test the parentheses around the conditions, but it should keep working as a filter.

     

    Maybe try

    (Employment_x0020_status eq 'Active' or Employment_x0020_status eq 'long absences) and (HC eq 1 and Employeecontracttype eq 'tk GSG')

  • Palucci12 Profile Picture
    on at

    Your two suggestions trigger a query invalid error. I'll try again with these parentheses 

  • Nunya1 Profile Picture
    77 on at

    I am no expert, (actually looking for answers on a problem I'm having), but it looks like your code is missing a closing square bracket after 'Employment_x0020_status'> ['Employment_x0020_status']

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 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard