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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple Filters on Li...
Power Automate
Unanswered

Multiple Filters on List Rows Present in a table - Update/Create SharePoint List

(0) ShareShare
ReportReport
Posted on by 83

Hi Everyone,

 

I'm stumped and it's most likely that I don't understand filter queries very well.  I have a flow that that takes an excel table and updates/creates rows in a SharePoint list.  All of this is working correctly.  What I would like the flow to do is to 

have a filter that looks at Employee column and if the name is for example Mike, James, or Tim to update the list otherwise don't update the list.  This seems like it should be very simple, but the filter arrays I've created and conditions I've created either update the list with all of the names or nothing.  I've attached screenshots of the working flow.  

 

Please help, thank you!

Capture.GIF

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @abonahoom,

     

    Could you please share how do you configure the Filter query?

    If you want to filter out items that employee name equals to Mike, James, or Tim and employee column is person column, you could use the Get items to get all items, then use Filter array action to filter them out, for example:

    @or(equals(item()?['Employee/DisplayName'], 'Mike'),equals(item()?['Employee/DisplayName'], 'James'),equals(item()?['Employee/DisplayName'], 'Tim'))

    Screenshot 2021-01-29 141915.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • abonahoom Profile Picture
    83 on at

    That's the challenge, I think I'm configuring it wrong because when I use it nothing gets filtered out.  I tried adding the filter array that you created and nothing was filtered out.  Here are screen shots of my get items and filter array.  I tested the flow and it created all of the items in from my spreadsheet, it didn't filter out the employee names.  Do I need to also create an additional condition?

     

    Capture.GIFCapture1.GIF

  • v-litu-msft Profile Picture
    on at

    Hi @abonahoom,

     

    The column name in the filter query should be “Employee/DisplayName”, not only the "Employee".

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • abonahoom Profile Picture
    83 on at

    @v-litu-msft I entered the filter query exactly as you have it and it's still pulling everything.  Here's a screenshot of how the flow ran.  Is it normal for the Outputs to be blank?  

    Capture1.GIF

     

    Capture.GIF

    I then updated the filter array From field to pull from the sharepoint list I get blank inputs and outputs when the flow runs.  

    Capture3.GIF

    Capture2.GIF

     

    Does the filter array need to be moved under List rows present in a table instead of Get items?  I tried moving it under list rows present in a table and the flow didn't run.  

  • Verified answer
    abonahoom Profile Picture
    83 on at

    I was able to get this work by removing the filter array and adding a condition after List rows present in a table.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 506 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard