Is it possible in Graph Explorer to convert to text format when get messages?
It is explained that if you set "Prefer: outlook.body-content-type=text" in the request header, you can get it in text format, but it is in a state where you can only get it in HTML format.
▼
https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http#request-headers
My goal is to use Java's SDK to get email messages in plain text, but I'm afraid the HTTP functionality isn't working.
This is a note set in the request header.
【Key】:【Value】 【Results】
Prefer:outlook.body-content-type:text → Bad Request - 400
prefer:outlook.body-content-type:text → Bad Request - 400
Prefer:text → Response preview:"contentType": "html"、Java:requestOptions.add(new HeaderOption("Prefer", "text"));
prefer:text → Response preview:"contentType": "html"、Java:requestOptions.add(new HeaderOption("prefer", "text"));
outlook.body-content-type:text → Response preview:"contentType": "html"、Java:requestOptions.add(new HeaderOption("outlook.body-content-type", "text"));
Is it a problem only for Graph Explorer that it can not be obtained in text format?