Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

What is wrong with this odata filter?

Posted on by
Hello, I am building a flow where the list rows action has an odata filter in the filter rows field:

daysuntilmovein eq 3 and city eq 5 and (access ne 2 or access ne 1) and (stage eq 1 or stage eq 4) and type ne 1

It pulled me a record where access is 2 even though it's clear it shouldnt happen. Is it a bug or is the filter incorrect?
  • Suggested answer
    eetuRobo Profile Picture
    eetuRobo 2,374 on at
    What is wrong with this odata filter?
    I think the problem is: (access ne 2 or access ne 1)
    I think that will always be true. The or access ne 1 will find access that has value 2.
    ​​​​​​​So if you have row that has access being 2 then 
    (
    access ne 2 =false or access ne 1 = true) -> true

    Change it to this:

    daysuntilmovein eq 3
    and city eq 5
    and access ne 2
    and access ne 1
    and (stage eq 1 or stage eq 4)
    and type ne 1

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard