I have a Sharepoint list for which I want to filter based on a comparison of two fields. I’d like to retrieve records for which the Title field does not match the DisplayName of a person field called Building_Monitor. Building_Monitor does not allow multi-selects.
The filter works if I compare either of these fields to a literal:
Title ne ‘Doe, John’
Building_Monitor/Title ne ‘Doe, John’
It does not work, however, if I try to compare the two.
Building_Monitor/Title ne Title
Title ne Building_Monitor/Title
These both produce the error “Fetching items failed. Possible invalid string in filter query.”
What’s the correct syntax for such a search?
Thanks!