Forum Discussion
lt_xx
Jan 19, 2024Copper Contributor
Microsoft Graph $filter complex collection not working
Hi,
when I try to filter the "toRecipients" list using $filter, I receive this error: "The query filter contains one or more invalid nodes." The syntax I am using for the search is as follows: $filter=toRecipients/any(r:r/emailAddress/address eq 'email address removed for privacy reasons')
What am I doing wrong?
Thx
3 Replies
Sort By
- Nothing, this is simply not supported. You cannot filter on this property, you can only search for messages by it ($search="to:email address removed for privacy reasons")
- lt_xxCopper Contributor
ok, thx.
However, I need to filter for a specific recipient within a certain date range.
How can I do that?
- Either use $search or get all the results, then filter client-side.