Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Office.context.mailbox.item.body.getAsync() method does not work in outlook mac 2016

In office 365 outlook add-in, Office.context.mailbox.item.body.getAsync() method does not work in outlook Mac. But it works fine in safari and chrome.

office js reference is "https://appsforoffice.microsoft.com/lib/1/hosted/office.js"

here is the code of add-in read app

     var _item = Office.context.mailbox.item;
     var body = _item.body;
        // Get the body asynchronous as text
        body.getAsync(Office.CoercionType.Text, function (asyncResult) {
            if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
            }
            else {
                $('#subject').html(asyncResult.value.trim());
            }
        });         
like image 984
InfoÁsith Avatar asked Apr 08 '16 12:04

InfoÁsith


1 Answers

That function is part of requirement set 1.3; the Mac add ins only support requirement set 1.1.

like image 51
lgaud Avatar answered Sep 29 '22 00:09

lgaud