An API that connects multiple Microsoft services, enabling data access and automation across platforms
Does Graph API return all Internet Message Headers associate with Item Attachment?
Piyumi Perera
131
Reputation points
I have a requirement to get all internet message headers of an item attachment. Is it possible to do it?
var itemAttachment = await graphServiceClient.Users["id"]
.Messages[messageId]
.Attachments[messageWithItemAttachment[0].Id]
.Request()
.Expand($"microsoft.graph.itemAttachment/item")
.GetAsync();
This returns some set of message header. But not all.
I found following resource which trying to read headers of an item using expand query. How to use such expand query within another expand query?
Microsoft Security | Microsoft Graph
Microsoft Security | Microsoft Graph
Sign in to answer