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
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.
Solved! Go to Solution.
I believe you need to use numbers to test for true or false:
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.
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.
I believe you need to use numbers to test for true or false:
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.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
29 | |
28 | |
24 | |
17 | |
10 |
User | Count |
---|---|
66 | |
57 | |
29 | |
27 | |
25 |