Skip to main content

Notifications

Power Automate - Using Flows
Answered

multiple conditions in Filter Array error

(0) ShareShare
ReportReport
Posted on by 338

Hi all,

 

I have the following code in a Filter Array action, filtering an array variable called conbinedList. 

 

 

 

@Or(
equals(item()?['displayName'], 'All team - for information'),
equals(item()?['displayName'], 'Awaiting Reply'),
equals(item()?['displayName'], 'Contacted John Smith'),
equals(item()?['displayName'], 'In progress'),
equals(item()?['displayName'], 'Needs Resolving')
)

 

 

 

It keeps saying expressed is invalid when i try to press "Add". Any idea why?

  • Re: multiple conditions in Filter Array error

    Hi @EpicTriffid ,

     

    Please copy and paste your formula directly into the red box I've marked.

    vbofengmsft_0-1719452740182.png

    vbofengmsft_1-1719452941079.png

     

    Best Regards,

    Bof

     

  • EpicTriffid Profile Picture
    EpicTriffid 338 on at
    Re: multiple conditions in Filter Array error

    Hi @v-bofeng-msft 

     

    It's all a bit convoluted, but the below is the last few steps, where I've joined two arrays together into a new combined array called CombinedList:

    EpicTriffid_0-1719394476972.png

    my initial post was actually incorrect in that i want to filter OUT those values above from the combinedList variable created in "Initialize variable 1":

     

    EpicTriffid_1-1719394653711.png

     

  • Re: multiple conditions in Filter Array error

    Hi @EpicTriffid ,

     

    I've made a test but your formula worked well on myside , could you please show me your flow?

    vbofengmsft_1-1719394212076.png

     

    vbofengmsft_0-1719394188266.png

     

    Best Regards,
    Bof

     

  • EpicTriffid Profile Picture
    EpicTriffid 338 on at
    Re: multiple conditions in Filter Array error

    the initial "@or" is lower case in my code, by it just appears capitalised in the code above!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics

Restore a deleted flow