Office.context.mailbox.item.body.getAsync() 方法在 Outlook mac 2016 中不起作用 [英] Office.context.mailbox.item.body.getAsync() method does not work in outlook mac 2016

查看:77
本文介绍了Office.context.mailbox.item.body.getAsync() 方法在 Outlook mac 2016 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 office 365 Outlook 插件中,Office.context.mailbox.item.body.getAsync() 方法在 outlook Mac 中不起作用.但它在 safarichrome 中运行良好.

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 参考是https://appsforoffice.microsoft.com/lib/1/hosted/office.js"

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());
            }
        });         

推荐答案

该功能是需求集 1.3 的一部分;Mac 插件仅支持需求集 1.1.

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

这篇关于Office.context.mailbox.item.body.getAsync() 方法在 Outlook mac 2016 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆