I am trying to search any keyword in Outlook mailbox including body, subject, attachment, etc using Microsoft graph API with C#. For subject and body I am able to apply filter but same way its not working with attachments. See the code below:
graphClient.Me.MailFolders.Inbox.Messages.Request().Expand("attachments") .Filter($"contains(subject, '{subject}')").OrderBy("Subject").Top(30).GetAsync();
I know in the filter I am passing the subject but I am not sure how to search the content in attachment.
Please provide me some suggestions.