In a outlook web add-in suddenly stops giving email address for sender/from object

爷,独闯天下 提交于 2019-12-20 02:44:08

问题


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:

I am using cdn hosted officejs api:

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

Current version of officejs api shows

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

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

Note: I am running above piece of code for message item in SentItem folder. For message in Inbox are working fine.


回答1:


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).



来源:https://stackoverflow.com/questions/42272013/in-a-outlook-web-add-in-suddenly-stops-giving-email-address-for-sender-from-obje

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!