Get MIME content of multiple messages using Microsoft Graph API

573 views Asked by At

It is well documented that you can use the MS Graph API to get the MIME content of a single message by appending $value to the query.

However, I am using the /messages endpoint with a search to grab a bunch of messages at once and I would like the MIME content returned for each of them without having to iterate individually and make more calls. My attempts to add the $value param have not been working so far. I'm doing something like this:

/me/messages?$value&$search=from:[email protected]

Am I doing this wrong or is this just not supported?

1

There are 1 answers

2
user2250152 On

URL segment $value can be added only when accessing a single item.

$value cannot be applied to a collection.

Resources:

OData URL capabilities

Requesting an Individual Property Raw Value