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 / ODATA filter using And...
Power Automate
Answered

ODATA filter using And operator

(1) ShareShare
ReportReport
Posted on by

Hi all,

 

I'm trying to build a flow where I get items from a sharepoint list and filter them by two or more columns, but every time I try to use the And operator in the ODATA filter, I get a bad request error. Is this just a broken implementation of filtering or am I actually doing something wrong?

 

Thanks

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

    Hi @IanBrooks,

     

    Could you please share a screenshot of your flow’s configuration?

    Do you use the And operator in Filter Query field of “Get items” action?

    Further, could you please show a bit more about the error message?

    I suppose that you want to filter items based on multiple columns of SharePoint list, I think there is something wrong with your formula. Please take a try to change "And" Operator into "and" operator:16.JPG

     

     

    Best regards,

    Kris

  • Community Power Platform Member Profile Picture
    on at

    Hi Kris,

     

    You've answered my question, the And operator isn't supported at present, which is a real shame as it is restricting the usability of the filter. Hopefully it will come in a future update!

     

    Thanks

     

    Ian

  • efialttes Profile Picture
    14,756 on at

    Kris

    Thanks for sharing the link. It is a very valuable info!

     

    @Anonymous

    I guess for some reason you have discarded using Filter Array action block, right?

    BR

     

  • Community Power Platform Member Profile Picture
    on at

    @efialttesThat's correct, I didn't really have a lot of choice as it simply doesn't fit the bill for our needs at present

  • kbirstein1 Profile Picture
    130 on at

    This is supported now. I have the following odata filter which works:

     

    Frequency ne null and ApprovalStatus eq 'Approved' and TaskStatus ne 'Complete' and SelectMethod ne 'By Attribute'"

  • Uvais Profile Picture
    10 on at
    Is it really working now.? I tried below condition and got error message

    Company eq 'Test' and Zone eq 'SW'

    Is there other way to get a filtered excel row with multiple conditions.
  • rjhale Profile Picture
    212 on at

    Did you ever get this worked out?  I'm also trying to filter on multiple "eq" conditions, but I'm getting an error indicating that mutltiple conditions is not supported.  I'm using the List Rows Present in Table action within the Excel (Business) connector. 

  • X-off Profile Picture
    17 on at

    Thanks @efialttes 

     

    Using the filter array action block is a great workaround for the "and" operator not working !

     

    You made my day week !

     

    Christophe

  • akharns Profile Picture
    433 on at

    Did we ever get an answer?  It looks to me like "and" is not working in the ODATA query for filter on getting rows from Excel.

     

    ODATA expression:  SubmissionMonth eq '@{triggerBody()?['SubmissionMonth']}' and Entity eq '@{triggerBody()?['Vendor']}'

    400 Bad Request

    Error message:  Invalid filter clause: unsupported operation. Only single 'eq', 'ne', 'contains', 'startswith' or 'endswith' is currently supported.

  • tsirweyn_ Profile Picture
    2 on at
    You could maybe try adding a calculated column directly to your sharepoint list: if (and ( ColumnA="criteria1" , ColumnB="criteria2" ), "yes" , "no"))

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard