In a outlook web add-in suddenly stops giving emai

2019-02-24 23:30发布

问题:

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