SomitraJ1275 Member since 2013 6 posts
Posted: July 31, 2020
Last activity: 1 week 3 days ago

MS Graph API returns mail message body as HTML code instead of plain text

Hi All,

We have done following steps successfully:

a) Email account connectivity for receiver via MS Graph API.

b) Email listener is up and running using email account for reading email via MS Graph API

c) work case is getting created using email listener

Issue observed:

Email body is appeared in html format instead of text format. 

Though we have configured format as text in email listener. Also in request form in Service Email rule HTML Body message is configured as "inline-text"

While checking online got below link:


above link suggests below setting:

requestMessage.Headers.Add("Prefer", "outlook.body-content-type='text'");

How to add above setting in Service email form in header fields . I can see some options in help article but not clear instructions on it.


Please share your thoughts if you have seen similar issue and you have some ideas/solution for this.


Pega Platform 8.4 System Administration Data Integration Java and Activities Financial Services Lead System Architect
Share this page LinkedIn