Danny
Danny

Reputation: 489

Get MIME content of multiple messages using Microsoft Graph API

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@domain.com

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

Upvotes: 0

Views: 780

Answers (1)

user2250152
user2250152

Reputation: 20823

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

Upvotes: 0

Related Questions