In the 365 office outlook add-in, the Office.context.mailbox.item.body.getAsync()method does not work in Outlook Mac . But it works great in safari and chrome .
office js reference " https://appsforoffice.microsoft.com/lib/1/hosted/office.js "
here is the add-in code to read.
var _item = Office.context.mailbox.item;
var body = _item.body;
body.getAsync(Office.CoercionType.Text, function (asyncResult) {
if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
}
else {
$('#subject').html(asyncResult.value.trim());
}
});
source
share