Hi all,
I'm working on a graph API integration where I get and load in messages from Graph API. I've got a minor problem in which the content is always returned in html.
In the get message documentation (Get message - Microsoft Graph v1.0 | Microsoft Docs) there is a header, 'Prefer: outlook.body-content-type' which allows for the return type to be set to text which makes it easier to extract the content.
The problem is, when I put this in the header field on an integration I get the following error message:
The header name Prefer: outlook.body-content-type is not valid. A header name may only contain letters, numbers, and the following special characters ! # $ % & ’’ * + - . ^ _ ` | ~
When I try to break the header up it always returns failure. Does anyone know the correct format to put the header name and value pair in?
Thanks in advance
Discussion posts and replies are publicly visible
https://github.com/microsoftgraph/microsoft-graph-docs/issues/4156
tells me
had the same as you because I wrote my header wrong. Try it with this:Header:
Name: PreferValue: outlook.body-content-type="text"
That works, thanks Stefan!