在Outlook Web加载项中突然停止提供发件人/发件人的电子邮件地址

问题描述:

在我的Outlook Web插件中,它突然停止提供来自&的电子邮件地址.发件人对象,我的代码如下:

In my outlook web addin it suddenly stops giving email address of from & sender object, My code looks like:

isSentItem() {
    return Office.context.mailbox.userProfile.emailAddress === Office.context.mailbox.item.sender.emailAddress;
}

我检查了控制台显示名称是否正确,但电子邮件地址未填充:

I checked in console display name is coming correct but email address not populating:

我正在使用CDN托管的officejs api:

I am using cdn hosted officejs api:

<script src="https://appsforoffice.microsoft.com/lib/1/hosted/office.js" type="text/javascript"></script>

officejs api的当前版本显示

Current version of officejs api shows

/* Office JavaScript API library */
/* Version: 16.0.7805.1000 */

Outlook客户端版本-Outlook 2016 MSO (16.0.4498.1000) 32-bit

Outlook client version - Outlook 2016 MSO (16.0.4498.1000) 32-bit

注意:我正在SentItem文件夹中运行消息项目的以上代码.对于收件箱中的邮件,一切正常.

如果以发送邮件文件夹中的示例为例运行此程序,则这是一个已知问题并已得到解决!但是,这对于传递给您的邮件(如收件箱中的邮件)应该不会发生.

If you are running this in your sent items folder as an example, this is a known issue and being addressed! This should however not happen for messages that are delivered to you (as in on the messages in the inbox).