I am trying to filter the ToReceipient using Graph API in C#.
as per Unable to filter messages by recipient in Microsoft Graph Api. One or more invalid nodes
at the moment Filter does not support ToRecipient. I need to use Search.
However in c# as per screenshot and code below, it does not seem to have search property, only filter. Anyone knows how to use Search in Graph API c#? I also need to filter it based on multiple toRecipient Email addresses. Thanks.
IUserMessagesCollectionPage msgs = await client.Users["user@domain.com"].Messages.Request().Filter ==> exist
IUserMessagesCollectionPage msgs = await client.Users["user@domain.com"].Messages.Request().Search ==> does not exist
