cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cah2035
Helper III
Helper III

Issue with ODATA filter in Get SharePoint List Items using and operator

I have a super simple filter query that is filtered on two columns, but I cannot get it to work. I am testing on a single record, below:

      "@odata.etag": "\"12\"",
      "ItemInternalId": "22",
      "ID": 22,
      "Title": "1002",
      "ResourceRequestNumber": "1002",
      "ProjectNumber": "1",
      "CTPRequestNumber": "APCP555-9099",
      "RequiresMaterialDropOff": true,
      "NewRequestNotify": true,
      "SubmittedRequestNotify": true,
      "DroppedOffNotify": true,
      "ReadyForPickupNotify": true,
      "PickUpNotify": true,
      "SubmissionDate": "2021-10-01",
      "LastIsPartial": false,
      "Modified": "2021-10-05T20:49:13Z",
      "Created": "2021-10-05T13:54:42Z",
      "Author": {

 

The query I want to use is not returning the expected result, but based on testing, I cannot figure out why it would not work:

The filter I want to use:
NewRequestNotify eq true and LastIsPartial eq false 

 

Filters I tested:

NewRequestNotify eq true returns the record

DroppedOffNotify eq true returns the record

LastIsPartial eq false returns the record

ID eq 22 and LastIsPartial eq false returns the record

NewRequestNotify eq true or LastIsPartial eq false returns the record

NewRequestNotify eq true and DroppedOffNotify eq true returns the record

 

All of the fields that return true/false are the Yes/No columns in a SharePoint list, so I should expect to see this behavior across all combinations of these fields. 

 

cah2035_0-1633531995576.png

 

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

I believe you need to use numbers to test for true or false:

ekarim2020_0-1633543959075.png

You may be able to test LastIsPartial eq 0 - but it didn't work with the test data in one of my lists.

 

Ellis


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Expiscornovus
Dual Super User
Dual Super User

Hi @cah2035,

 

Have you tried it with round brackets:

(NewRequestNotify eq true) and (LastIsPartial eq false)

 

Let us know if that works?

 

Thanks, but no that did not work either.

ekarim2020
Super User
Super User

I believe you need to use numbers to test for true or false:

ekarim2020_0-1633543959075.png

You may be able to test LastIsPartial eq 0 - but it didn't work with the test data in one of my lists.

 

Ellis


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

@ekarim2020 Thank you! Using ne instead of eq fixed the issue. Not sure why I couldn't use eq though. It does work with using true/false though, but does work as well with 0/1. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,627)