I am trying to get a list of emails given their InternetMessageID.
For one given InternetMessageID, I can retrieve the corresponding mail following the syntax provided in Outlook documentation
"https://outlook.office365.com/api/beta/me/messages?$filter=SingleValueExtendedProperties/any(ep: ep/PropertyId eq 'String 0x1035' and ep/Value eq '<12.FF.36768.EE3E3365@twitter.com>' )";
Now let us say that I want to retrieve two mails with the same request I did not manage to get a successful syntax.
For example
"https://outlook.office365.com/api/beta/me/messages?$filter=SingleValueExtendedProperties/any(ep: ep/PropertyId eq 'String 0x1035' and (ep/Value eq '<12.FF.36768.EE3E3365@twitter.com>' or ep/value eq 'anothermailid@toto.com'))";
does not work. A BadRequest is returned with a message
The filter expression for $filter does not match to a single extended property and a value restriction.
I have tried many combination of grouping and also test with an $expand
statement as suggested in this question. Is there a way to perform such kind of requests with Outlook Web Api of Graph API ?